fix(sdk): Don't call event.raw() twice.
This patch replaces a second call to `event.raw()` by re-using the `raw_event` variable.
This commit is contained in:
@@ -1435,7 +1435,7 @@ mod private {
|
||||
|
||||
let Ok(AnySyncTimelineEvent::MessageLike(
|
||||
ruma::events::AnySyncMessageLikeEvent::RoomRedaction(redaction),
|
||||
)) = event.raw().deserialize()
|
||||
)) = raw_event.deserialize()
|
||||
else {
|
||||
return Ok(());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user