review: Make call intent not optional in content
This commit is contained in:
parent
b0e9073efb
commit
e158be86aa
4 changed files with 7 additions and 10 deletions
|
|
@ -110,7 +110,7 @@ class TimelineEventContentMapper(
|
|||
}
|
||||
is MsgLikeKind.LiveLocation -> {
|
||||
// Live location messages are a special kind of message that we want to treat as unknown content for now
|
||||
UnknownContent
|
||||
UnknownContent
|
||||
}
|
||||
is MsgLikeKind.Other -> UnknownContent
|
||||
}
|
||||
|
|
@ -139,12 +139,10 @@ class TimelineEventContentMapper(
|
|||
}
|
||||
is TimelineItemContent.CallInvite -> LegacyCallInviteContent
|
||||
is TimelineItemContent.RtcNotification -> CallNotifyContent(
|
||||
it.callIntent?.let { intentString ->
|
||||
if (intentString == "audio") {
|
||||
CallIntent.AUDIO
|
||||
} else {
|
||||
CallIntent.VIDEO
|
||||
}
|
||||
callIntent = if (it.callIntent == "audio") {
|
||||
CallIntent.AUDIO
|
||||
} else {
|
||||
CallIntent.VIDEO
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue