Added formatting name and type to lowercase

This commit is contained in:
roman.turubayev@econophysica.com 2024-10-07 21:38:38 +07:00
parent b63af09368
commit b00181feec
1 changed files with 2 additions and 1 deletions

View File

@ -500,7 +500,8 @@ fun Event.getPollContent(): MessagePollContent? {
return getClearContent().toModel<MessagePollContent>()
}
fun Event.isJitsiEvent() = content?.toModel<JitsiEventContent>()?.type == IS_JITSI_CALL && content.toModel<JitsiEventContent>()?.name == IS_JITSI_CALL
fun Event.isJitsiEvent() = content?.toModel<JitsiEventContent>()?.type?.lowercase() == IS_JITSI_CALL &&
content.toModel<JitsiEventContent>()?.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