From b00181feec647e921f859242a9ea01c2a4a633a4 Mon Sep 17 00:00:00 2001 From: "roman.turubayev@econophysica.com" Date: Mon, 7 Oct 2024 21:38:38 +0700 Subject: [PATCH] Added formatting name and type to lowercase --- .../org/matrix/android/sdk/api/session/events/model/Event.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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