auto add to created fav/follow

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-27 19:06:26 +08:00
parent b406a00c8d
commit 89fdc28150
4 changed files with 81 additions and 75 deletions

View File

@@ -176,7 +176,9 @@ class _GroupPanelState extends State<GroupPanel> {
void _onCreateFavTag(({int tagid, String tagName}) res) {
if (!mounted) return;
if (loadingState case Success(:final response)) {
response.add(MemberTagItemModel.fromCreate(res));
response.add(MemberTagItemModel.fromCreate(res, count: 1));
tags.add(res.tagid);
showDefaultBtn.value = false;
setState(() {});
} else {
_queryFollowUpTags();