Skip to content

Commit b678ee9

Browse files
authored
Fix #9053 #9046 display in sequence rooms (#9062)
* Update side-panel.ts * Update side-panel.hbs * Update side-panel.hbs * Update side-panel.ts
1 parent ac42b0e commit b678ee9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export default class PublicStreamSidePanel extends Component<Args> {
129129
rooms.included?.map((stream: any) => ({
130130
id : stream.id,
131131
name : stream.attributes.name,
132+
position : stream.attributes.position,
132133
roomName : rooms.data.filter((room: any) => room.relationships['video-stream'].data ? room.relationships['video-stream'].data.id === stream.id : null).map((room: any) => room.attributes.name)[0],
133134
slugName : slugify(rooms.data.filter((room: any) => room.relationships['video-stream'].data ? room.relationships['video-stream'].data.id === stream.id : null).map((room: any) => room.attributes['chat-room-name'])[0]),
134135
isChatEnabled : rooms.data.filter((room: any) => room.relationships['video-stream'].data ? room.relationships['video-stream'].data.id === stream.id : null).map((room: any) => room.attributes['is-chat-enabled'])[0],
@@ -141,6 +142,10 @@ export default class PublicStreamSidePanel extends Component<Args> {
141142
stream.translations = res
142143
this.addStream(stream)
143144
});
145+
this.streams.forEach(async(stream: any) => {
146+
const res = await this.fetchTranslationChannels(stream.id)
147+
stream.translations = res
148+
});
144149
} catch (e) {
145150
console.error('Error while loading rooms in video stream', e);
146151
}

0 commit comments

Comments
 (0)