fix to update UI only if reaction was actually added

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-04-07 14:27:23 +02:00
parent 36b786616a
commit 357c67db83
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -256,7 +256,7 @@ class MessageActionsDialog(
override fun onNext(@NonNull genericOverall: GenericOverall) {
val statusCode = genericOverall.ocs.meta.statusCode
if (statusCode == HTTP_OK || statusCode == HTTP_CREATED) {
if (statusCode == HTTP_CREATED) {
chatController.updateAdapterAfterSendReaction(message, emoji)
}
}