RoomSummary: RoomListEntry.Invalidated should not build empty room summary

This commit is contained in:
ganfra
2023-09-18 10:56:29 +02:00
parent 7fb2277efd
commit cdbfa4a0ce

View File

@@ -110,7 +110,7 @@ class RoomSummaryListProcessor(
RoomListEntry.Empty -> buildEmptyRoomSummary()
is RoomListEntry.Filled -> buildAndCacheRoomSummaryForIdentifier(entry.roomId)
is RoomListEntry.Invalidated -> {
roomSummariesByIdentifier[entry.roomId] ?: buildEmptyRoomSummary()
roomSummariesByIdentifier[entry.roomId] ?: buildAndCacheRoomSummaryForIdentifier(entry.roomId)
}
}
}