Use thread protocol when possible

This commit is contained in:
ismailgulek
2022-02-10 16:48:27 +03:00
parent aaefc2c9c4
commit 18c44c2c06
6 changed files with 13 additions and 13 deletions
@@ -32,7 +32,7 @@ enum ThreadNotificationStatus {
case notified
case highlighted
init(withThread thread: MXThread) {
init(withThread thread: MXThreadProtocol) {
if thread.highlightCount > 0 {
self = .highlighted
} else if thread.isParticipated && thread.notificationCount > 0 {