Skip to content

Commit dd3c984

Browse files
fix:loading icon on side panel (#8425)
Co-authored-by: Pavnesh Chaturvedi <[email protected]>
1 parent 2cce252 commit dd3c984

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/components/public/stream/side-panel.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,13 @@ export default class PublicStreamSidePanel extends Component<Args> {
8989
} catch (e) {
9090
console.error('Error while loading rooms in video stream', e);
9191
}
92-
const { success, token } = await this.loader.load(`/events/${this.args.event.id}/chat-token`);
93-
this.token = token;
94-
this.success = success;
92+
93+
if (this.args.event.isChatEnabled) {
94+
const { success, token } = await this.loader.load(`/events/${this.args.event.id}/chat-token`);
95+
this.token = token;
96+
this.success = success;
97+
}
98+
9599
this.loading = false;
96100
}
97101

0 commit comments

Comments
 (0)