mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Revert "Add a warning for dismissing invalid toasts"
This reverts commit 3674b6446e
.
This commit is contained in:
parent
3674b6446e
commit
dc23dd637c
1 changed files with 0 additions and 5 deletions
|
@ -68,11 +68,6 @@ export default class ToastStore extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
dismissToast(key) {
|
dismissToast(key) {
|
||||||
if (!this.toasts.some(t => t.key === key)) {
|
|
||||||
console.warn(`No toast for ${key} found - cannot dismiss. Check your toastKey`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.toasts[0] && this.toasts[0].key === key) {
|
if (this.toasts[0] && this.toasts[0].key === key) {
|
||||||
this.countSeen++;
|
this.countSeen++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue