mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Disable click on Stickers (#703)
This commit is contained in:
parent
7eae85a394
commit
648691656a
2 changed files with 9 additions and 4 deletions
|
@ -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 🗣:
|
||||
-
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue