From 026afed54aa6c4c97ecc710feaa0028b1ed0b6b2 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 24 Nov 2023 09:45:23 +0200 Subject: [PATCH] Fixes #2005 - Remove rooms from the room list after leaving them --- .../Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift | 2 +- changelog.d/2005.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/2005.bugfix diff --git a/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift b/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift index 424f66370..d068fb93c 100644 --- a/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift +++ b/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift @@ -151,7 +151,7 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol { case .none: _ = listUpdatesSubscriptionResult?.controller.setFilter(kind: .none) case .all: - _ = listUpdatesSubscriptionResult?.controller.setFilter(kind: .all) + _ = listUpdatesSubscriptionResult?.controller.setFilter(kind: .allNonLeft) case .normalizedMatchRoomName(let query): _ = listUpdatesSubscriptionResult?.controller.setFilter(kind: .normalizedMatchRoomName(pattern: query.lowercased())) } diff --git a/changelog.d/2005.bugfix b/changelog.d/2005.bugfix new file mode 100644 index 000000000..a763ab1c0 --- /dev/null +++ b/changelog.d/2005.bugfix @@ -0,0 +1 @@ +Remove rooms from the room list after leaving them \ No newline at end of file