Exclude state-events from room summaries and unread indicators

Related issue:
https://github.com/vector-im/element-android/issues/588
This commit is contained in:
SpiritCroc 2020-08-15 17:11:29 +02:00
parent 9f24356d92
commit 72d2b1c9f1

View file

@ -65,17 +65,21 @@ internal class RoomSummaryUpdater @Inject constructor(
val PREVIEWABLE_TYPES = listOf(
// TODO filter message type (KEY_VERIFICATION_READY, etc.)
EventType.MESSAGE,
/*
EventType.STATE_ROOM_NAME,
EventType.STATE_ROOM_TOPIC,
EventType.STATE_ROOM_AVATAR,
EventType.STATE_ROOM_MEMBER,
EventType.STATE_ROOM_HISTORY_VISIBILITY,
*/
EventType.CALL_INVITE,
EventType.CALL_HANGUP,
EventType.CALL_ANSWER,
EventType.ENCRYPTED,
/*
EventType.STATE_ROOM_ENCRYPTION,
EventType.STATE_ROOM_THIRD_PARTY_INVITE,
*/
EventType.STICKER,
EventType.REACTION,
EventType.STATE_ROOM_CREATE