From f15e693a54016c16758a4a813d2d1385bb1c2d4e Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 3 Jun 2025 10:29:40 +0100 Subject: [PATCH] fix: update default & current stream info --- lib/widgets/stream_config.dart | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/widgets/stream_config.dart b/lib/widgets/stream_config.dart index 9a1340f..42ed1f6 100644 --- a/lib/widgets/stream_config.dart +++ b/lib/widgets/stream_config.dart @@ -171,8 +171,20 @@ class _StreamConfigWidget extends State { BasicButton.text( t.button.save, onTap: (context) async { + final current = widget.currentStream?.getFirstTag("d"); + + // Update current first + if (current != null) { + await widget.api.updateDefaultStreamInfo( + id: current, + title: _title.text, + summary: _summary.text, + contentWarning: _nsfw ? "nsfw" : null, + tags: _tags.text.split(","), + ); + } + // Updated default stream info (no id) await widget.api.updateDefaultStreamInfo( - id: widget.currentStream?.getFirstTag("d"), title: _title.text, summary: _summary.text, contentWarning: _nsfw ? "nsfw" : null,