We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829b588 commit d7730f4Copy full SHA for d7730f4
src/BasePlatform.ts
@@ -16,6 +16,7 @@ import {
16
type SSOAction,
17
encodeUnpaddedBase64,
18
type OidcRegistrationClientMetadata,
19
+ MatrixEventEvent,
20
} from "matrix-js-sdk/src/matrix";
21
import { logger } from "matrix-js-sdk/src/logger";
22
@@ -228,6 +229,16 @@ export default abstract class BasePlatform {
228
229
window.focus();
230
};
231
232
+ const closeHandler = (): void => notification.close();
233
+
234
+ // Clear a notification from a redacted event.
235
+ if (ev) {
236
+ ev.once(MatrixEventEvent.BeforeRedaction, closeHandler);
237
+ notification.onclose = () => {
238
+ ev.off(MatrixEventEvent.BeforeRedaction, closeHandler);
239
+ };
240
+ }
241
242
return notification;
243
}
244
0 commit comments