about summary refs log tree commit diff
path: root/MatrixUtils.Web/Pages/Rooms
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-27 04:08:25 +0200
committerRory& <root@rory.gay>2025-06-06 20:20:41 +0200
commita6946e0f82e65c7a9e090909e8618066a2f073bf (patch)
treec66bf894eeed930ef2620a8cfc4adde6cb7d754d /MatrixUtils.Web/Pages/Rooms
parentClean up later... (diff)
downloadMatrixUtils-a6946e0f82e65c7a9e090909e8618066a2f073bf.tar.xz
Fix room list
Diffstat (limited to 'MatrixUtils.Web/Pages/Rooms')
-rw-r--r--MatrixUtils.Web/Pages/Rooms/Index.razor2
1 files changed, 1 insertions, 1 deletions
diff --git a/MatrixUtils.Web/Pages/Rooms/Index.razor b/MatrixUtils.Web/Pages/Rooms/Index.razor

index 611bf56..115c903 100644 --- a/MatrixUtils.Web/Pages/Rooms/Index.razor +++ b/MatrixUtils.Web/Pages/Rooms/Index.razor
@@ -210,7 +210,7 @@ Status = $"Got sync with {sync.Rooms?.Join?.Count ?? 0} room updates, next batch: {sync.NextBatch}!"; if (sync.Rooms?.Join != null) foreach (var joinedRoom in sync.Rooms.Join) - if ( /*joinedRoom.Value.AccountData?.Events?.Count > 0 ||*/ joinedRoom.Value.State?.Events?.Count > 0) { + if (joinedRoom.Value.StateAfter?.Events?.Count > 0) { joinedRoom.Value.StateAfter?.Events?.RemoveAll(x => x.Type == "m.room.member" && x.StateKey != Homeserver.WhoAmI.UserId); // We can't trust servers to give us what we ask for, and this ruins performance // Thanks, Conduit.