Merge pull request #5131 from vector-im/doug/5105_unread_sort_group

Refresh RecentsListService when switching modes.
This commit is contained in:
Doug
2021-11-11 18:10:40 +00:00
committed by GitHub
3 changed files with 19 additions and 1 deletions
@@ -20,7 +20,12 @@ import Foundation
public class RecentsListService: NSObject, RecentsListServiceProtocol {
private weak var session: MXSession?
public private(set) var mode: RecentsDataSourceMode
public private(set) var mode: RecentsDataSourceMode {
didSet {
refresh()
}
}
public private(set) var query: String?
public private(set) var space: MXSpace?
@@ -60,6 +60,18 @@ public class MockRoomSummary: NSObject, MXRoomSummaryProtocol {
public var highlightCount: UInt = 0
public var hasAnyUnread: Bool {
return localUnreadEventCount > 0
}
public var hasAnyNotification: Bool {
return notificationCount > 0
}
public var hasAnyHighlight: Bool {
return highlightCount > 0
}
public var isDirect: Bool {
return isTyped(.direct)
}
+1
View File
@@ -0,0 +1 @@
Fix room ordering when switching between Home and People/Rooms/Favourites.