Skip to content

Commit

Permalink
Added preview failure bug fix (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 authored Nov 2, 2023
1 parent 5be4e2b commit d5c1873
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/hms_room_kit/lib/src/preview/preview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ class _PreviewPageState extends State<PreviewPage> {
meetingStore.removeListeners(),
meetingStore.peerTracks.clear(),
meetingStore.resetForegroundTaskAndOrientation(),
// meetingStore.clearPIPState(),
meetingStore.isRoomEnded = true,
// meetingStore.isRoomEnded = true,
previewStore.isMeetingJoined = false,
previewStore.hmsSDKInteractor.leave(),
HMSThemeColors.resetLayoutColors(),
Expand Down
8 changes: 5 additions & 3 deletions packages/hms_room_kit/lib/src/screen_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ class _ScreenControllerState extends State<ScreenController> {
/// - If successful we show the preview page
void _initPreview() async {
Constant.roomCode = widget.roomCode;
setState(() {
isLoading = true;
});
if (mounted) {
setState(() {
isLoading = true;
});
}
_hmsSDKInteractor = HMSSDKInteractor(
iOSScreenshareConfig: widget.options?.iOSScreenshareConfig,
joinWithMutedAudio: AppDebugConfig.joinWithMutedAudio,
Expand Down

0 comments on commit d5c1873

Please sign in to comment.