All dem changes
This commit is contained in:
@@ -1671,11 +1671,33 @@ class _MultiModeJoinState extends State<MultiModeJoin> {
|
||||
onPressed: () async {
|
||||
LiveInformation liveInformation = LiveInformation();
|
||||
|
||||
liveInformation.setRouteVariant(null);
|
||||
|
||||
await liveInformation.joinRoom(controller.text);
|
||||
|
||||
Navigator.popAndPushNamed(context, "/multi/enroute");
|
||||
if (controller.text.isNotEmpty ? await liveInformation.joinRoom(controller.text) : false) {
|
||||
liveInformation.setRouteVariant(null);
|
||||
Navigator.popAndPushNamed(context, "/multi/enroute");
|
||||
} else {
|
||||
showShadDialog(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return ShadDialog(
|
||||
title: const Text("Failed to join group"),
|
||||
content: const Text("Failed to join group. Please check the room code and try again"),
|
||||
actions: [
|
||||
ShadButton(
|
||||
text: const Text("Close"),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user