Page MenuHomePhorge

D12455.1765102941.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D12455.1765102941.diff

diff --git a/lib/handlers/user-infos-handler.react.js b/lib/handlers/user-infos-handler.react.js
--- a/lib/handlers/user-infos-handler.react.js
+++ b/lib/handlers/user-infos-handler.react.js
@@ -8,6 +8,7 @@
} from '../actions/user-actions.js';
import { useGetAndUpdateDeviceListsForUsers } from '../hooks/peer-list-hooks.js';
import { usersWithMissingDeviceListSelector } from '../selectors/user-selectors.js';
+import { useTunnelbroker } from '../tunnelbroker/tunnelbroker-context.js';
import { getMessageForException } from '../utils/errors.js';
import { useDispatchActionPromise } from '../utils/redux-promise-utils.js';
import { useSelector } from '../utils/redux-utils.js';
@@ -71,10 +72,12 @@
usersWithMissingDeviceListSelector,
);
const getAndUpdateDeviceListsForUsers = useGetAndUpdateDeviceListsForUsers();
+ const { socketState } = useTunnelbroker();
React.useEffect(() => {
if (
!usingCommServicesAccessToken ||
- usersWithMissingDeviceList.length === 0
+ usersWithMissingDeviceList.length === 0 ||
+ !socketState.isAuthorized
) {
return;
}
@@ -89,7 +92,11 @@
);
}
})();
- }, [getAndUpdateDeviceListsForUsers, usersWithMissingDeviceList]);
+ }, [
+ socketState.isAuthorized,
+ getAndUpdateDeviceListsForUsers,
+ usersWithMissingDeviceList,
+ ]);
}
export { UserInfosHandler };

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 7, 10:22 AM (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5843466
Default Alt Text
D12455.1765102941.diff (1 KB)

Event Timeline