Merge pull request #853 from pangeachat/reorder-invite-bot-operations
create bot options before invite
This commit is contained in:
commit
d3d7acda63
1 changed files with 2 additions and 2 deletions
|
|
@ -241,6 +241,8 @@ class ConversationBotSettingsDialogState
|
|||
|
||||
updateFromTextControllers();
|
||||
|
||||
Navigator.of(context).pop(botOptions);
|
||||
|
||||
final bool isBotRoomMember =
|
||||
await widget.room.botIsInRoom;
|
||||
if (addBot && !isBotRoomMember) {
|
||||
|
|
@ -248,8 +250,6 @@ class ConversationBotSettingsDialogState
|
|||
} else if (!addBot && isBotRoomMember) {
|
||||
await widget.room.kick(BotName.byEnvironment);
|
||||
}
|
||||
|
||||
Navigator.of(context).pop(botOptions);
|
||||
},
|
||||
child: Text(L10n.of(context)!.confirm),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue