Skip to content

Commit

Permalink
chore: establish websockets connection only on first party server hos…
Browse files Browse the repository at this point in the history
…ts (#2616)
  • Loading branch information
karolsojko authored Nov 2, 2023
1 parent 4be9b51 commit f95a4fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/snjs/lib/Services/Session/SessionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ export class SessionManager

this.apiService.setSession(session, persist)

void this.webSocketsService.startWebSocketConnection()
if (this.isSignedIntoFirstPartyServer()) {
void this.webSocketsService.startWebSocketConnection()
}
}

public online() {
Expand Down

0 comments on commit f95a4fe

Please sign in to comment.