🐛 Bug fixes
This commit is contained in:
		| @@ -400,6 +400,7 @@ class ChatCallProvider extends GetxController { | ||||
|   } | ||||
|  | ||||
|   void disposeRoom() { | ||||
|     isBusy.value = false; | ||||
|     isMounted.value = false; | ||||
|     isInitialized.value = false; | ||||
|     current.value = null; | ||||
|   | ||||
| @@ -246,7 +246,8 @@ class _CallScreenState extends State<CallScreen> with TickerProviderStateMixin { | ||||
|                                   return Row( | ||||
|                                     children: [ | ||||
|                                       Text( | ||||
|                                         call.channel.value!.name, | ||||
|                                         call.channel.value?.name ?? | ||||
|                                             'unknown'.tr, | ||||
|                                         style: const TextStyle( | ||||
|                                           fontWeight: FontWeight.bold, | ||||
|                                         ), | ||||
|   | ||||
| @@ -380,4 +380,5 @@ const i18nEnglish = { | ||||
|   'messageOutOfSyncCaption': | ||||
|       'Since the App has entered the background, there may be a time difference between the message list and the server. Click to Refresh.', | ||||
|   'messageHistoryWipe': 'Wipe local message history', | ||||
|   'unknown': 'Unknown', | ||||
| }; | ||||
|   | ||||
| @@ -346,4 +346,5 @@ const i18nSimplifiedChinese = { | ||||
|   'messageOutOfSync': '消息可能与服务器脱节', | ||||
|   'messageOutOfSyncCaption': '由于 App 进入后台,消息列表可能与服务器存在时差,点击刷新。', | ||||
|   'messageHistoryWipe': '清除消息记录', | ||||
|   'unknown': '未知', | ||||
| }; | ||||
|   | ||||
| @@ -31,6 +31,7 @@ class ChannelCallIndicator extends StatelessWidget { | ||||
|       builder: (context) => ChatCallPrejoinPopup( | ||||
|         ongoingCall: ongoingCall, | ||||
|         channel: channel, | ||||
|         onJoin: onJoin, | ||||
|       ), | ||||
|     ); | ||||
|   } | ||||
|   | ||||
| @@ -11,11 +11,13 @@ import 'package:solian/providers/call.dart'; | ||||
| class ChatCallPrejoinPopup extends StatefulWidget { | ||||
|   final Call ongoingCall; | ||||
|   final Channel channel; | ||||
|   final Function onJoin; | ||||
|  | ||||
|   const ChatCallPrejoinPopup({ | ||||
|     super.key, | ||||
|     required this.ongoingCall, | ||||
|     required this.channel, | ||||
|     required this.onJoin, | ||||
|   }); | ||||
|  | ||||
|   @override | ||||
| @@ -56,6 +58,7 @@ class _ChatCallPrejoinPopupState extends State<ChatCallPrejoinPopup> { | ||||
|       context.showErrorDialog(e); | ||||
|     } | ||||
|  | ||||
|     widget.onJoin(); | ||||
|     setState(() => _isBusy = false); | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user