mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-22 07:32:14 +02:00
Merge pull request #5131 from vector-im/doug/5105_unread_sort_group
Refresh RecentsListService when switching modes.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Fix room ordering when switching between Home and People/Rooms/Favourites.
|
||||
Reference in New Issue
Block a user