[fractal/fractal-next] room: Update room on incoming Tombstone event
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] room: Update room on incoming Tombstone event
- Date: Thu, 2 Dec 2021 10:29:28 +0000 (UTC)
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]