mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 21:15:30 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue