mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-09 02:58:18 +01:00
ensure call isn't cleared by onCallUpdate when setting up member list
This commit is contained in:
parent
5035d23573
commit
c2fab59f58
@ -29,14 +29,15 @@ export class CallTile extends SimpleTile {
|
|||||||
constructor(entry, options) {
|
constructor(entry, options) {
|
||||||
super(entry, options);
|
super(entry, options);
|
||||||
const calls = this.getOption("session").callHandler.calls;
|
const calls = this.getOption("session").callHandler.calls;
|
||||||
this._call = calls.get(this._entry.stateKey);
|
|
||||||
this._callSubscription = undefined;
|
this._callSubscription = undefined;
|
||||||
if (this._call) {
|
const call = calls.get(this._entry.stateKey);
|
||||||
|
if (call && !call.isTerminated) {
|
||||||
|
this._call = call;
|
||||||
|
this.memberViewModels = this._setupMembersList(this._call);
|
||||||
this._callSubscription = this.track(this._call.disposableOn("change", () => {
|
this._callSubscription = this.track(this._call.disposableOn("change", () => {
|
||||||
this._onCallUpdate();
|
this._onCallUpdate();
|
||||||
}));
|
}));
|
||||||
this._onCallUpdate();
|
this._onCallUpdate();
|
||||||
this.memberViewModels = this._setupMembersList(this._call);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user