[fractal/fractal-next] room: Update room on incoming Tombstone event



commit 0d00c72951132849e91a8a28e9255dc0ca2fd3d5
Author: Julian Sparber <julian sparber net>
Date:   Thu Dec 2 10:40:18 2021 +0100

    room: Update room on incoming Tombstone event

 src/session/room/mod.rs | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/session/room/mod.rs b/src/session/room/mod.rs
index 2a9f4277..89c3209d 100644
--- a/src/session/room/mod.rs
+++ b/src/session/room/mod.rs
@@ -757,6 +757,9 @@ impl Room {
                 AnySyncRoomEvent::State(AnySyncStateEvent::RoomPowerLevels(event)) => {
                     self.power_levels().update_from_event(event.clone());
                 }
+                AnySyncRoomEvent::State(AnySyncStateEvent::RoomTombstone(_)) => {
+                    self.load_successor();
+                }
                 _ => {}
             }
             let event_is_join_or_leave = matches!(&event, 
AnySyncRoomEvent::State(AnySyncStateEvent::RoomMember(event))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]