mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +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. */
|
||||
private joinedData?: JoinedData;
|
||||
private errorBoundary = new ErrorBoundary(err => {
|
||||
this.emitChange();
|
||||
if (this.joinedData) {
|
||||
// in case the error happens in code that does not log,
|
||||
// log it here to make sure it isn't swallowed
|
||||
this.joinedData.logItem.log("error at boundary").catch(err);
|
||||
}
|
||||
this.emitChange();
|
||||
});
|
||||
|
||||
constructor(
|
||||
|
Loading…
Reference in New Issue
Block a user