mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
emit change before logging
This commit is contained in:
parent
e6b17cc74a
commit
2408850678
@ -94,12 +94,12 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
|||||||
/** Set between calling join and leave. */
|
/** Set between calling join and leave. */
|
||||||
private joinedData?: JoinedData;
|
private joinedData?: JoinedData;
|
||||||
private errorBoundary = new ErrorBoundary(err => {
|
private errorBoundary = new ErrorBoundary(err => {
|
||||||
|
this.emitChange();
|
||||||
if (this.joinedData) {
|
if (this.joinedData) {
|
||||||
// in case the error happens in code that does not log,
|
// in case the error happens in code that does not log,
|
||||||
// log it here to make sure it isn't swallowed
|
// log it here to make sure it isn't swallowed
|
||||||
this.joinedData.logItem.log("error at boundary").catch(err);
|
this.joinedData.logItem.log("error at boundary").catch(err);
|
||||||
}
|
}
|
||||||
this.emitChange();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
Loading…
Reference in New Issue
Block a user