Browse Source

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 years ago
parent
commit
4f16e5be0a

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

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