mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-25 11:13:41 +00:00
Toasts for new, unverified sessions
Fixes https://github.com/vector-im/riot-web/issues/11218
This commit is contained in:
@@ -31,6 +31,10 @@ export default class ToastStore extends EventEmitter {
|
||||
this._toasts = [];
|
||||
}
|
||||
|
||||
reset() {
|
||||
this._toasts = [];
|
||||
}
|
||||
|
||||
addOrReplaceToast(newToast) {
|
||||
const oldIndex = this._toasts.findIndex(t => t.key === newToast.key);
|
||||
if (oldIndex === -1) {
|
||||
|
||||
Reference in New Issue
Block a user