MCPcopy Create free account
hub / github.com/CommE2E/comm / setNewReceivedSession

Method setNewReceivedSession

lib/socket/socket.react.js:662–680  ·  view source on GitHub ↗
(sessionID: ?string)

Source from the content-addressed store, hash-verified

660 }
661
662 setNewReceivedSession(sessionID: ?string) {
663 if (sessionID === null || sessionID === undefined) {
664 return;
665 }
666 invariant(
667 this.initializedWithUserState,
668 'initializedWithUserState should be set when state sync received',
669 );
670 this.props.dispatch({
671 type: setNewSessionActionType,
672 payload: {
673 sessionChange: { cookieInvalidated: false, sessionID },
674 preRequestUserState: this.initializedWithUserState,
675 error: null,
676 authActionSource: undefined,
677 keyserverID: this.props.keyserverID,
678 },
679 });
680 }
681
682 initializeSocket: (retriesLeft?: number) => Promise<void> = async (
683 retriesLeft = 1,

Callers 2

sendInitialMessageMethod · 0.95
fetchPendingUpdatesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected