mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Use EventType.isCallEvent()
This commit is contained in:
parent
d3f93984d4
commit
df4aab1d73
1 changed files with 2 additions and 7 deletions
|
@ -57,13 +57,8 @@ internal class DefaultCallEventsObserverTask @Inject constructor(
|
|||
Timber.w("Event with no room id ${event.eventId}")
|
||||
}
|
||||
decryptIfNeeded(event)
|
||||
when (event.getClearType()) {
|
||||
EventType.CALL_INVITE,
|
||||
EventType.CALL_CANDIDATES,
|
||||
EventType.CALL_HANGUP,
|
||||
EventType.CALL_ANSWER -> {
|
||||
callService.onCallEvent(event)
|
||||
}
|
||||
if (EventType.isCallEvent(event.getClearType())) {
|
||||
callService.onCallEvent(event)
|
||||
}
|
||||
}
|
||||
Timber.v("$realm : $userId")
|
||||
|
|
Loading…
Reference in a new issue