mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Merge pull request #1943 from nextcloud/bugfix/noid/fixReactionsNPE
Fix npe if message has no self reactions initially
This commit is contained in:
commit
b9726b25b7
@ -269,7 +269,7 @@ class MessageActionsDialog(
|
||||
}
|
||||
|
||||
private fun sendReaction(message: ChatMessage, emoji: String) {
|
||||
if (message.reactionsSelf.contains(emoji)) {
|
||||
if (message.reactionsSelf?.contains(emoji) == true) {
|
||||
deleteReaction(message, emoji)
|
||||
} else {
|
||||
addReaction(message, emoji)
|
||||
|
Loading…
Reference in New Issue
Block a user