From 17801fdf5494824b95c60268890f9e72594b0e95 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Fri, 25 Sep 2020 13:24:21 +0200 Subject: [PATCH] Multiple stickers in a row don't require showInformation each time Change-Id: I0364d46ba00f29291a4527e7ad3a98d1275ea829 --- .../detail/timeline/helper/MessageInformationDataFactory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/MessageInformationDataFactory.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/MessageInformationDataFactory.kt index 7a06012540..d39892ffea 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/MessageInformationDataFactory.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/MessageInformationDataFactory.kt @@ -65,7 +65,7 @@ class MessageInformationDataFactory @Inject constructor(private val session: Ses addDaySeparator || event.senderInfo.avatarUrl != nextEvent?.senderInfo?.avatarUrl || event.senderInfo.disambiguatedDisplayName != nextEvent?.senderInfo?.disambiguatedDisplayName - || (nextEvent.root.getClearType() != EventType.MESSAGE && nextEvent.root.getClearType() != EventType.ENCRYPTED) + || (nextEvent.root.getClearType() != EventType.MESSAGE && nextEvent.root.getClearType() != EventType.ENCRYPTED && nextEvent.root.getClearType() != EventType.STICKER) || isNextMessageReceivedMoreThanOneHourAgo || isTileTypeMessage(nextEvent)