Don’t show visual notifications when they’re turned off.

Fixes #1299.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-04-18 13:09:24 -07:00
committed by Anders Kaseorg
parent 3cb6ea4694
commit 1da3ec545a

View File

@@ -392,7 +392,9 @@ export class ServerManagerView {
url: server.url,
role: "server",
hasPermission: (origin: string, permission: string) =>
origin === server.url && permission === "notifications",
origin === server.url &&
permission === "notifications" &&
ConfigUtil.getConfigItem("showNotification", true),
isActive: () => index === this.activeTabIndex,
switchLoading: async (loading: boolean, url: string) => {
if (loading) {