We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cce252 commit dd3c984Copy full SHA for dd3c984
app/components/public/stream/side-panel.ts
@@ -89,9 +89,13 @@ export default class PublicStreamSidePanel extends Component<Args> {
89
} catch (e) {
90
console.error('Error while loading rooms in video stream', e);
91
}
92
- const { success, token } = await this.loader.load(`/events/${this.args.event.id}/chat-token`);
93
- this.token = token;
94
- this.success = success;
+
+ if (this.args.event.isChatEnabled) {
+ const { success, token } = await this.loader.load(`/events/${this.args.event.id}/chat-token`);
95
+ this.token = token;
96
+ this.success = success;
97
+ }
98
99
this.loading = false;
100
101
0 commit comments