浏览代码

fix to show reactionsEmojiWrapper

with commit 0f35e360 it was implemented to hide the reactionsEmojiWrapper when no emojis are set for a message.
whenever a emoji was added, it was actually not shown because the wrapper was still hidden.

with the fix, the wrapper is made visible again

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 2 年之前
父节点
当前提交
4f16e5be0a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/java/com/nextcloud/talk/adapters/messages/Reaction.kt

+ 1 - 0
app/src/main/java/com/nextcloud/talk/adapters/messages/Reaction.kt

@@ -47,6 +47,7 @@ class Reaction {
     ) {
         binding.reactionsEmojiWrapper.removeAllViews()
         if (message.reactions != null && message.reactions!!.isNotEmpty()) {
+            binding.reactionsEmojiWrapper.visibility = View.VISIBLE
 
             var remainingEmojisToDisplay = MAX_EMOJIS_TO_DISPLAY
             val showInfoAboutMoreEmojis = message.reactions!!.size > MAX_EMOJIS_TO_DISPLAY