mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-11 18:47:47 +00:00
add "Untagged" to filter addressbook peers without tags (#10063)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -33,6 +33,8 @@ bool filterAbTagByIntersection() {
|
||||
const _personalAddressBookName = "My address book";
|
||||
const _legacyAddressBookName = "Legacy address book";
|
||||
|
||||
const kUntagged = "Untagged";
|
||||
|
||||
enum ForcePullAb {
|
||||
listAndCurrent,
|
||||
current,
|
||||
@@ -424,6 +426,7 @@ class AbModel {
|
||||
|
||||
// #region tags
|
||||
Future<bool> addTags(List<String> tagList) async {
|
||||
tagList.removeWhere((e) => e == kUntagged);
|
||||
final ret = await current.addTags(tagList, {});
|
||||
await pullNonLegacyAfterChange();
|
||||
_saveCache();
|
||||
|
||||
Reference in New Issue
Block a user