mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
changes should be true when replyVM is not set and we set an entry
This commit is contained in:
parent
ccc5aac025
commit
bae8dc7dd7
@ -25,7 +25,7 @@ export class ComposerViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setReplyingTo(entry) {
|
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) {
|
if (changed) {
|
||||||
this._replyVM = this.disposeTracked(this._replyVM);
|
this._replyVM = this.disposeTracked(this._replyVM);
|
||||||
if (entry) {
|
if (entry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user