diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index b11be197388..60454069373 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -137,7 +137,7 @@ import BreakoutRoomsEditor from '../BreakoutRoomsEditor/BreakoutRoomsEditor.vue' import ConversationIcon from '../ConversationIcon.vue' import { useGetParticipants } from '../../composables/useGetParticipants.js' -import { AVATAR, CONVERSATION } from '../../constants.js' +import { AVATAR, CONVERSATION, ATTENDEE } from '../../constants.js' import BrowserStorage from '../../services/BrowserStorage.js' import { getTalkConfig } from '../../services/CapabilitiesManager.ts' import { useChatExtrasStore } from '../../stores/chatExtras.js' @@ -304,13 +304,19 @@ export default { return this.nextEvent && !this.isInCall && !this.isSidebar && !this.isMobile && this.conversation.type !== CONVERSATION.TYPE.NOTE_TO_SELF }, + + isGuestActor() { + return this.$store.getters.getActorType() === ATTENDEE.ACTOR_TYPE.GUESTS + || this.$store.getters.getActorType() === null // not initialized yet + }, }, watch: { token: { immediate: true, handler(value) { - if (!value || this.isSidebar) { + if (!value || this.isSidebar || this.isGuestActor) { + // Do not fetch upcoming events for guests (401 unauthorzied) or in sidebar return } this.chatExtrasStore.getUpcomingEvents(value)