mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-16 03:41:29 +00:00
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:
committed by
Anders Kaseorg
parent
3cb6ea4694
commit
1da3ec545a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user