Editable channel

This commit is contained in:
2024-11-28 23:35:25 +08:00
parent dc1ce94145
commit 36013a3a57
8 changed files with 203 additions and 5 deletions

View File

@ -58,6 +58,9 @@ class _ChatManageScreenState extends State<ChatManageScreen> {
'/cgi/im/channels/${widget.editingChannelAlias}',
);
_editingChannel = SnChannel.fromJson(resp.data);
_aliasController.text = _editingChannel!.alias;
_nameController.text = _editingChannel!.name;
_descriptionController.text = _editingChannel!.description;
} catch (err) {
if (!mounted) return;
context.showErrorDialog(err);