From 94635a18e06475136bdac976e25c66a38249bac9 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 16 Jun 2021 12:41:42 +0200 Subject: [PATCH] actually, 0 or -1 mean you have a local redaction --- src/domain/session/room/timeline/ReactionsViewModel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/ReactionsViewModel.js b/src/domain/session/room/timeline/ReactionsViewModel.js index 5df57089..575c912b 100644 --- a/src/domain/session/room/timeline/ReactionsViewModel.js +++ b/src/domain/session/room/timeline/ReactionsViewModel.js @@ -160,7 +160,8 @@ class ReactionViewModel { } this._isToggling = true; try { - const haveLocalRedaction = this.isPending && this._pendingCount < 0; + // TODO: should some of this go into BaseMessageTile? + const haveLocalRedaction = this.isPending && this._pendingCount <= 0; const havePendingReaction = this.isPending && this._pendingCount > 0; const haveRemoteReaction = this._annotation?.me; const haveReaction = havePendingReaction || (haveRemoteReaction && !haveLocalRedaction);