mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-15 11:21:51 +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,
|
url: server.url,
|
||||||
role: "server",
|
role: "server",
|
||||||
hasPermission: (origin: string, permission: string) =>
|
hasPermission: (origin: string, permission: string) =>
|
||||||
origin === server.url && permission === "notifications",
|
origin === server.url &&
|
||||||
|
permission === "notifications" &&
|
||||||
|
ConfigUtil.getConfigItem("showNotification", true),
|
||||||
isActive: () => index === this.activeTabIndex,
|
isActive: () => index === this.activeTabIndex,
|
||||||
switchLoading: async (loading: boolean, url: string) => {
|
switchLoading: async (loading: boolean, url: string) => {
|
||||||
if (loading) {
|
if (loading) {
|
||||||
|
|||||||
Reference in New Issue
Block a user