Hide typing events if there is a live voice broadcast

This commit is contained in:
Florian Renaud 2022-12-05 18:04:54 +01:00
parent 69beef4648
commit aa5270760e

View file

@ -146,6 +146,8 @@ class RoomSummaryItemFactory @Inject constructor(
}
val typingMessage = typingHelper.getTypingMessage(roomSummary.typingUsers)
// Skip typing while there is a live voice broadcast
.takeUnless { latestEvent?.root?.asVoiceBroadcastEvent()?.isLive.orFalse() }.orEmpty()
return if (subtitle.isBlank() && displayMode == RoomListDisplayMode.FILTERED) {
createCenteredRoomSummaryItem(roomSummary, displayMode, showSelected, unreadCount, onClick, onLongClick)