emit change before logging

This commit is contained in:
Bruno Windels 2023-01-19 11:33:21 +01:00
parent e6b17cc74a
commit 2408850678

View File

@ -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(