mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Add support for active call item rendering in timeline (#5775)
* feat(timeline): Add support for active call item rendering in timeline * Update active call as per design (show raw count of members) * fixup project files * revert unexpected generated mocks change * code review * Record preview snapshots * revert changes on project.yml * post rebase fix
This commit is contained in:
+13
-2
@@ -11,10 +11,21 @@ import Foundation
|
||||
nonisolated struct CallNotificationRoomTimelineItem: RoomTimelineItemProtocol, Equatable {
|
||||
let id: TimelineItemIdentifier
|
||||
let timestamp: Date
|
||||
let sender: TimelineItemSender
|
||||
let isDM: Bool
|
||||
let isDeclinedByMe: Bool
|
||||
let isDeclined: Bool
|
||||
let isVoiceCall: Bool
|
||||
|
||||
/// Represents the state of the call notification - either tombstoned (ended) or active (ongoing)
|
||||
enum CallState: Equatable {
|
||||
/// A tombstoned/ended call notification
|
||||
case tombstoned(isDeclinedByMe: Bool, isDeclined: Bool)
|
||||
/// An active/ongoing call notification
|
||||
case active(activeMembers: [String],
|
||||
isJoined: Bool,
|
||||
callStartTimestamp: Date?)
|
||||
}
|
||||
|
||||
let callState: CallState
|
||||
|
||||
var properties = RoomTimelineItemProperties()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user