mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
opt multi mention
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -248,10 +248,12 @@ abstract class CommonRichTextPubPageState<T extends CommonRichTextPubPage>
|
||||
if (res != null) {
|
||||
if (res is MentionItem) {
|
||||
_onInsertUser(res, fromClick);
|
||||
} else if (res is Iterable<MentionItem>) {
|
||||
} else if (res is Set<MentionItem>) {
|
||||
for (var e in res) {
|
||||
e.checked = null;
|
||||
_onInsertUser(e, fromClick);
|
||||
}
|
||||
res.clear();
|
||||
}
|
||||
}
|
||||
controller.restoreChatPanel();
|
||||
|
||||
@@ -208,13 +208,8 @@ class _DynMentionPanelState extends State<DynMentionPanel> {
|
||||
_controller.showBtn.value = false;
|
||||
return;
|
||||
}
|
||||
Get.back(result: _controller.mentionList!.toSet());
|
||||
for (var e in _controller.mentionList!) {
|
||||
e.checked = null;
|
||||
}
|
||||
_controller
|
||||
..mentionList!.clear()
|
||||
..showBtn.value = false;
|
||||
Get.back(result: _controller.mentionList);
|
||||
_controller.showBtn.value = false;
|
||||
},
|
||||
child: const Icon(Icons.check),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user