forked from mystiq/hydrogen-web
actually, 0 or -1 mean you have a local redaction
This commit is contained in:
parent
4f10174e48
commit
94635a18e0
1 changed files with 2 additions and 1 deletions
|
@ -160,7 +160,8 @@ class ReactionViewModel {
|
||||||
}
|
}
|
||||||
this._isToggling = true;
|
this._isToggling = true;
|
||||||
try {
|
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 havePendingReaction = this.isPending && this._pendingCount > 0;
|
||||||
const haveRemoteReaction = this._annotation?.me;
|
const haveRemoteReaction = this._annotation?.me;
|
||||||
const haveReaction = havePendingReaction || (haveRemoteReaction && !haveLocalRedaction);
|
const haveReaction = havePendingReaction || (haveRemoteReaction && !haveLocalRedaction);
|
||||||
|
|
Loading…
Reference in a new issue