actually, 0 or -1 mean you have a local redaction

This commit is contained in:
Bruno Windels 2021-06-16 12:41:42 +02:00
parent 4f10174e48
commit 94635a18e0

View File

@ -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);