mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 20:49:36 +01:00
fix npe if message has no self reactions initially
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
7eedbb2a6c
commit
6316c709ad
@ -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