Disable click on Stickers (#703)

This commit is contained in:
Benoit Marty 2019-12-18 19:20:44 +01:00
parent 7eae85a394
commit 648691656a
2 changed files with 9 additions and 4 deletions

View file

@ -16,6 +16,7 @@ Bugfix 🐛:
- Render default room name when it starts with an emoji (#477)
- Do not display " (IRC)" in display names https://github.com/vector-im/riot-android/issues/444
- Fix rendering issue with HTML formatted body
- Disable click on Stickers (#703)
Translations 🗣:
-

View file

@ -181,10 +181,14 @@ class MessageItemFactory @Inject constructor(
.playable(messageContent.info?.mimeType == "image/gif")
.highlighted(highlight)
.mediaData(data)
.clickListener(
DebouncedClickListener(View.OnClickListener { view ->
callback?.onImageMessageClicked(messageContent, data, view)
}))
.apply {
if (messageContent.type != MessageType.MSGTYPE_STICKER_LOCAL) {
clickListener(
DebouncedClickListener(View.OnClickListener { view ->
callback?.onImageMessageClicked(messageContent, data, view)
}))
}
}
}
private fun buildVideoMessageItem(messageContent: MessageVideoContent,