forked from mystiq/hydrogen-web
changes should be true when replyVM is not set and we set an entry
This commit is contained in:
parent
ccc5aac025
commit
bae8dc7dd7
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export class ComposerViewModel extends ViewModel {
|
|||
}
|
||||
|
||||
setReplyingTo(entry) {
|
||||
const changed = this._replyVM?.id?.equals(entry?.asEventKey());
|
||||
const changed = new Boolean(entry) !== new Boolean(this._replyVM) || !this._replyVM?.id.equals(entry.asEventKey());
|
||||
if (changed) {
|
||||
this._replyVM = this.disposeTracked(this._replyVM);
|
||||
if (entry) {
|
||||
|
|
Loading…
Reference in a new issue