mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 03:55:09 +01:00
actually, 0 or -1 mean you have a local redaction
This commit is contained in:
parent
4f10174e48
commit
94635a18e0
@ -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 New Issue
Block a user