From 9e77dcddec58ba0097a04ff706326fd1770d9798 Mon Sep 17 00:00:00 2001 From: "Mateo \"Kuruk\" Miccino" Date: Tue, 30 Jan 2024 18:34:36 -0300 Subject: [PATCH] fix: protocol changes for emotes --- rust/decentraland-godot-lib/src/comms/profile.rs | 2 +- rust/decentraland-godot-lib/src/dcl/js/events.rs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/rust/decentraland-godot-lib/src/comms/profile.rs b/rust/decentraland-godot-lib/src/comms/profile.rs index 770bf142..bb238500 100644 --- a/rust/decentraland-godot-lib/src/comms/profile.rs +++ b/rust/decentraland-godot-lib/src/comms/profile.rs @@ -188,7 +188,7 @@ impl SerializedProfile { pub fn to_pb_avatar_equipped_data(&self) -> PbAvatarEquippedData { PbAvatarEquippedData { wearable_urns: self.avatar.wearables.to_vec(), - emotes_urns: self + emote_urns: self .avatar .emotes .as_ref() diff --git a/rust/decentraland-godot-lib/src/dcl/js/events.rs b/rust/decentraland-godot-lib/src/dcl/js/events.rs index 0857b4c6..a765be30 100644 --- a/rust/decentraland-godot-lib/src/dcl/js/events.rs +++ b/rust/decentraland-godot-lib/src/dcl/js/events.rs @@ -394,11 +394,7 @@ pub fn process_events_players_stateless( .inner .send( serde_json::to_string(&EventBodyExpressionId { - expression_id: value - .emote_command - .as_ref() - .map(|v| v.emote_urn.clone()) - .unwrap_or_default(), + expression_id: value.emote_urn.clone(), }) .expect("fail json serialize"), )