don't dismiss dialog when clicked on reaction of someone else

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-04-21 12:17:11 +02:00
parent b136465415
commit 55a48585a7
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -185,10 +185,9 @@ class ShowReactionsDialog(
override fun onClick(reactionItem: ReactionItem) {
if (reactionItem.reactionVoter.actorId?.equals(userEntity?.userId) == true) {
deleteReaction(chatMessage, reactionItem.reaction!!)
}
dismiss()
}
}
private fun deleteReaction(message: ChatMessage, emoji: String) {
val credentials = ApiUtils.getCredentials(userEntity?.username, userEntity?.token)