File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/components/public/stream Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ export default class PublicStreamSidePanel extends Component<Args> {
129
129
rooms . included ?. map ( ( stream : any ) => ( {
130
130
id : stream . id ,
131
131
name : stream . attributes . name ,
132
+ position : stream . attributes . position ,
132
133
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 ] ,
133
134
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 ] ) ,
134
135
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> {
141
142
stream . translations = res
142
143
this . addStream ( stream )
143
144
} ) ;
145
+ this . streams . forEach ( async ( stream : any ) => {
146
+ const res = await this . fetchTranslationChannels ( stream . id )
147
+ stream . translations = res
148
+ } ) ;
144
149
} catch ( e ) {
145
150
console . error ( 'Error while loading rooms in video stream' , e ) ;
146
151
}
You can’t perform that action at this time.
0 commit comments