mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
fix to send reaction for message that has no reactions yet
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
4670854848
commit
4e727924c2
@ -2722,6 +2722,10 @@ class ChatController(args: Bundle) :
|
||||
}
|
||||
|
||||
fun updateAdapterAfterSendReaction(message: ChatMessage, emoji: String) {
|
||||
if (message.reactions == null){
|
||||
message.reactions = HashMap()
|
||||
}
|
||||
|
||||
var amount = message.reactions[emoji]
|
||||
if (amount == null){
|
||||
amount = 0
|
||||
|
Loading…
Reference in New Issue
Block a user