Skip to content

Commit

Permalink
fix: dont call the E2EI service when the feature is not on (#18596)
Browse files Browse the repository at this point in the history
  • Loading branch information
aweiss-dev authored Jan 17, 2025
1 parent 12d3cbc commit 692fdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/hooks/useDeviceIdentities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const useUserIdentity = (userId: QualifiedId, groupId?: string, updateAft
};

const refreshDeviceIdentities = useCallback(async () => {
if (!groupId) {
if (!groupId || !E2EIHandler.getInstance().isE2EIEnabled()) {
return;
}

Expand Down

0 comments on commit 692fdc8

Please sign in to comment.