From 92254ae6b31eccf862ccab518b87a659d33b73f0 Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Wed, 17 Aug 2022 18:46:54 -0300 Subject: [PATCH 1/2] fix: Being stuck on loading after a SAML login --- src/injected.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/injected.ts b/src/injected.ts index e086634304..58b0214065 100644 --- a/src/injected.ts +++ b/src/injected.ts @@ -94,6 +94,7 @@ const start = (): void => { Tracker.autorun(() => { const uid = Meteor.userId(); + if (!uid) return; const isAutoAwayEnabled: unknown = getUserPreference(uid, 'enableAutoAway'); const idleThreshold: unknown = getUserPreference(uid, 'idleTimeLimit'); @@ -121,8 +122,7 @@ const start = (): void => { window.Notification = class RocketChatDesktopNotification extends EventTarget - implements Notification - { + implements Notification { static readonly permission: NotificationPermission = 'granted'; static readonly maxActions: number = From 250cf76dd0709e0bb0f91f16bfe71d2196978e67 Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Wed, 17 Aug 2022 18:56:24 -0300 Subject: [PATCH 2/2] fix link --- src/injected.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/injected.ts b/src/injected.ts index 58b0214065..e186429f53 100644 --- a/src/injected.ts +++ b/src/injected.ts @@ -122,7 +122,8 @@ const start = (): void => { window.Notification = class RocketChatDesktopNotification extends EventTarget - implements Notification { + implements Notification + { static readonly permission: NotificationPermission = 'granted'; static readonly maxActions: number =