Skip to content

Commit

Permalink
Merge pull request #449 from intersective/bugfix/CORE-6617/chat-messa…
Browse files Browse the repository at this point in the history
…ges-not-appearing-in-real-time

[CORE-6617] Chat messages not appearing in real time
  • Loading branch information
sasangachathumal authored Jun 19, 2024
2 parents 7c264ee + 27e3a7b commit e66bfa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/shared/pusher/pusher.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export class PusherService {
return this.pusher;
}
// prevent pusher auth before user authenticated (skip silently)
const apikey = this.storage.getUser().apikey;
const timelineId = this.storage.get('experience').timelineId;
const apikey = this.storage.getUser() ? this.storage.getUser().apikey : null;
const timelineId = this.storage.get('experience') ? this.storage.get('experience').timelineId : null;
if (!apikey || !timelineId) {
return this.pusher;
}
Expand Down

0 comments on commit e66bfa8

Please sign in to comment.