Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
menduz committed May 12, 2022
1 parent 21d029f commit 7c28adc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/shared/friends/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import { SET_WORLD_CONTEXT } from 'shared/comms/actions'
import { getRealm } from 'shared/comms/selectors'
import { Avatar, EthAddress } from '@dcl/schemas'
import { trackEvent } from '../analytics'
import { getCurrentIdentity } from 'shared/session/selectors'
import { getCurrentIdentity, getIsGuestLogin } from 'shared/session/selectors'
import { store } from 'shared/store/isolatedStore'
import { getPeer } from 'shared/comms/peers'

Expand Down Expand Up @@ -98,6 +98,12 @@ function* initializeFriendsSaga() {
yield call(waitForRendererInstance)

const currentIdentity: ExplorerIdentity | undefined = yield select(getCurrentIdentity)

const isGuest = yield select(getIsGuestLogin)

// guests must not use the friends & private messaging features
if (isGuest) return

const client: SocialAPI | null = yield select(getSocialClient)
const isLoggedIn: boolean = (currentIdentity && client && (yield apply(client, client.isLoggedIn, []))) || false

Expand Down

0 comments on commit 7c28adc

Please sign in to comment.