Skip to content

Commit

Permalink
app settings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshvai committed Mar 22, 2024
1 parent 985a44b commit 8072f63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions package/src/components/Chat/hooks/useAppSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ export const useAppSettings = <
async function enforeAppSettings() {
if (!client.userID) return;

if (enableOfflineSupport && !initialisedDatabase.initialised) return;

if (enableOfflineSupport && initialisedDatabase.userID !== client.userID) return;
if (enableOfflineSupport && !initialisedDatabase) return;

if (!isOnline && enableOfflineSupport) {
const appSettings = dbApi.getAppSettings({ currentUserId: client.userID });
Expand Down

0 comments on commit 8072f63

Please sign in to comment.