From ab9284fcedcdf0311f06740091abd9394ab58045 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 4 Jun 2020 13:47:43 -0600 Subject: [PATCH] Fix not being able to dismiss new login toasts `toastKey` is a thing. Fixes https://github.com/vector-im/riot-web/issues/13923 (cherry picked from commit c667ea69afba22620e0add944bdf0b4c22a5a184) --- src/toasts/UnverifiedSessionToast.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toasts/UnverifiedSessionToast.ts b/src/toasts/UnverifiedSessionToast.ts index 635356b9db..9dedd2b137 100644 --- a/src/toasts/UnverifiedSessionToast.ts +++ b/src/toasts/UnverifiedSessionToast.ts @@ -66,5 +66,5 @@ export const showToast = (deviceId: string) => { }; export const hideToast = (deviceId: string) => { - ToastStore.sharedInstance().dismissToast(deviceId); + ToastStore.sharedInstance().dismissToast(toastKey(deviceId)); };