Add thread notification dots

This commit is contained in:
ismailgulek
2021-12-01 14:42:05 +03:00
parent 7a3d683d93
commit 5d46651aa4
5 changed files with 93 additions and 3 deletions
@@ -22,4 +22,21 @@ struct ThreadViewModel {
var rootMessageText: String?
var lastMessageTime: String?
var summaryViewModel: ThreadSummaryViewModel?
var notificationStatus: ThreadNotificationStatus
}
enum ThreadNotificationStatus {
case none
case notified
case highlighted
init(withThread thread: MXThread) {
if thread.highlightCount > 0 {
self = .highlighted
} else if thread.notificationCount > 0 {
self = .notified
} else {
self = .none
}
}
}