File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
app/components/public/stream Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default class JoinVideo extends Component<Args> {
2626 openPanel ( ) : void {
2727 if ( this . args . canAccess ) {
2828 this . args . showSidePanel ?.( ) ;
29+ this . eventCheckIn ( this . args . event . identifier )
2930 this . router . transitionTo ( { queryParams : { side_panel : true } } ) ;
3031 } else {
3132 if ( this . session . isAuthenticated ) {
@@ -35,4 +36,16 @@ export default class JoinVideo extends Component<Args> {
3536 }
3637 }
3738 }
39+
40+ async eventCheckIn ( event_identifier : string ) {
41+ try {
42+ const data :any = {
43+ 'check_in_type' : 'event' ,
44+ 'is_check_in' : true
45+ } ;
46+ await this . loader . post ( `events/${ event_identifier } /virtual/check-in` , data ) ;
47+ } catch ( e ) {
48+ // Ignore error to prevent stackoverflow
49+ }
50+ }
3851}
Original file line number Diff line number Diff line change @@ -170,11 +170,28 @@ export default class PublicStreamVideoStream extends Component<Args> {
170170 this . selectingLanguage . setName ( null ) ;
171171 }
172172 this . selectingLanguage . setTranslationRoomId ( stream . id )
173+ this . eventCheckIn ( this . args . event . identifier , stream . microlocationId )
173174 }
174175
175176 @action
176177 hideStreamYard ( ) {
177178 this . selectingLanguage . setStreamYardVisibility ( false ) ;
178179 }
179180
181+ async eventCheckIn ( event_identifier : string , microlocation_id : number ) {
182+ try {
183+ const data :any = {
184+ 'check_in_type' : 'room' ,
185+ microlocation_id,
186+ 'is_check_in' : true
187+ } ;
188+ if ( microlocation_id === undefined ) {
189+ data . check_in_type = 'virtual-room'
190+ }
191+ await this . loader . post ( `events/${ event_identifier } /virtual/check-in` , data ) ;
192+ } catch ( e ) {
193+ // Ignore error to prevent stackoverflow
194+ }
195+ }
196+
180197}
You can’t perform that action at this time.
0 commit comments