mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
prevent NPE when adding the very first own reaction to a message
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
55a48585a7
commit
9ec7feaaee
@ -2746,6 +2746,10 @@ class ChatController(args: Bundle) :
|
||||
message.reactions = LinkedHashMap()
|
||||
}
|
||||
|
||||
if (message.reactionsSelf == null) {
|
||||
message.reactionsSelf = ArrayList<String>()
|
||||
}
|
||||
|
||||
var amount = message.reactions[emoji]
|
||||
if (amount == null) {
|
||||
amount = 0
|
||||
|
Loading…
Reference in New Issue
Block a user