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> {
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 }
You can’t perform that action at this time.
0 commit comments