mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
feat(call): Active call timeline rendering
This commit is contained in:
+4
-1
@@ -120,7 +120,10 @@ data object LegacyCallInviteContent : EventContent
|
||||
|
||||
data class CallNotifyContent(
|
||||
val callIntent: CallIntent,
|
||||
val declinedBy: List<UserId>
|
||||
val declinedBy: List<UserId>,
|
||||
val activeMembers: List<UserId>,
|
||||
val isJoined: Boolean,
|
||||
val callStartTsMillis: Long,
|
||||
) : EventContent
|
||||
|
||||
data object UnknownContent : EventContent
|
||||
|
||||
+4
-1
@@ -154,7 +154,10 @@ class TimelineEventContentMapper(
|
||||
} else {
|
||||
CallIntent.VIDEO
|
||||
},
|
||||
declinedBy = it.declinedBy.map(::UserId)
|
||||
declinedBy = it.declinedBy.map(::UserId),
|
||||
activeMembers = it.activeMembers.map(::UserId),
|
||||
callStartTsMillis = it.callStartTsMillis?.toLong() ?: 0,
|
||||
isJoined = it.isJoined
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user