From 3e46be0ac8d877f9c47c93c03e3f455cc200f001 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 22 Jul 2020 09:55:19 +0100 Subject: [PATCH] Move toast priorities to a numeric enum to enforce uniqueness Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/platform/ElectronPlatform.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index f21f7601..15c43e27 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -46,7 +46,7 @@ import {Action} from "matrix-react-sdk/src/dispatcher/actions"; import {ActionPayload} from "matrix-react-sdk/src/dispatcher/payloads"; import {showToast as showUpdateToast} from "matrix-react-sdk/src/toasts/UpdateToast"; import {CheckUpdatesPayload} from "matrix-react-sdk/src/dispatcher/payloads/CheckUpdatesPayload"; -import ToastStore from "matrix-react-sdk/src/stores/ToastStore"; +import ToastStore, {Priority} from "matrix-react-sdk/src/stores/ToastStore"; import GenericExpiringToast from "matrix-react-sdk/src/components/views/toasts/GenericExpiringToast"; const ipcRenderer = window.ipcRenderer; @@ -266,7 +266,7 @@ export default class ElectronPlatform extends VectorBasePlatform { numSeconds: 10, }, component: GenericExpiringToast, - priority: 99, + priority: Priority.DownloadCompleted, }); });