File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1042,8 +1042,11 @@ impl RoomInfo {
10421042
10431043 self . keys . remove ( redacts) ;
10441044 } ,
1045- Some ( EventLocation :: Sticker ( event_id) ) => {
1046- self . keys . remove ( redacts) ;
1045+ Some ( EventLocation :: Sticker ( key) ) => {
1046+ if let Some ( msg) = self . messages . get_mut ( key) {
1047+ let ev = SyncRoomRedactionEvent :: Original ( ev) ;
1048+ msg. redact ( ev, room_version) ;
1049+ }
10471050 } ,
10481051 }
10491052 }
@@ -1075,7 +1078,8 @@ impl RoomInfo {
10751078 match sticker {
10761079 MessageLikeEvent :: Original ( ref sticker_content) => {
10771080 //TODO
1078- let key = ( sticker_content. origin_server_ts . into ( ) , sticker_content. event_id . clone ( ) ) ;
1081+ let key =
1082+ ( sticker_content. origin_server_ts . into ( ) , sticker_content. event_id . clone ( ) ) ;
10791083
10801084 let loc = EventLocation :: Sticker ( key. clone ( ) ) ;
10811085
You can’t perform that action at this time.
0 commit comments