mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Display whether a call is ongoing in any particular room on the room list
This commit is contained in:
committed by
Stefan Ceriu
parent
2e1b4cb80b
commit
5c4e0bd76d
@@ -124,6 +124,8 @@ struct HomeScreenRoom: Identifiable, Equatable {
|
||||
|
||||
var hasUnreads = false
|
||||
|
||||
var hasOngoingCall = false
|
||||
|
||||
var timestamp: String?
|
||||
|
||||
var lastMessage: AttributedString?
|
||||
@@ -132,12 +134,6 @@ struct HomeScreenRoom: Identifiable, Equatable {
|
||||
|
||||
var notificationMode: RoomNotificationModeProxy?
|
||||
|
||||
var hasDecoration: Bool {
|
||||
// notification setting is displayed only for .mentionsAndKeywords and .mute
|
||||
let showNotificationSettings = notificationMode != nil
|
||||
return hasUnreads || showNotificationSettings
|
||||
}
|
||||
|
||||
var isPlaceholder = false
|
||||
|
||||
static func placeholder() -> HomeScreenRoom {
|
||||
|
||||
Reference in New Issue
Block a user