diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/events/model/Event.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/events/model/Event.kt index 2b575608f6..053af04815 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/events/model/Event.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/events/model/Event.kt @@ -500,7 +500,8 @@ fun Event.getPollContent(): MessagePollContent? { return getClearContent().toModel() } -fun Event.isJitsiEvent() = content?.toModel()?.type == IS_JITSI_CALL && content.toModel()?.name == IS_JITSI_CALL +fun Event.isJitsiEvent() = content?.toModel()?.type?.lowercase() == IS_JITSI_CALL && + content.toModel()?.name?.lowercase() == IS_JITSI_CALL fun Event.supportsNotification() = this.getClearType() in EventType.MESSAGE + EventType.POLL_START.values + EventType.POLL_END.values + EventType.STATE_ROOM_BEACON_INFO.values