fix(core): restore group remarks in queries
Request and retain the group remark information needed by group list and group detail queries while preserving the existing safeguards for large rosters. Synchronize confirmed group remark changes with the local identity roster and persistent cache. Remote failures leave local state untouched, and missing roster entries remain observable without creating phantom groups. Add regression coverage for query mapping, request scope, persistence, failed updates, unknown groups, and closed identity stores. Fixes #304
This commit is contained in:
10 files changed
+173
-10
No files matched your search
@@ -5,8 +5,9 @@
|
||||
// per-group fields to include. Asking for everything blows the
|
||||
// named-pipe write buffer on accounts with ~200+ groups (see #42),
|
||||
// so we keep `config1.*` mostly on but turn off the costly
|
||||
// `field5002`/`field5003` and entire `config2` block that never map
|
||||
// back to a decoded field anyway.
|
||||
// `field5002`/`field5003` and the unused `config2` fields. `config2.remark`
|
||||
// is the bot-local group remark returned as `customInfo.remark`, so it is the
|
||||
// sole optional field enabled in that block.
|
||||
|
||||
import { protobuf_decode, protobuf_encode } from '@snowluma/proton';
|
||||
import type { OidbBase, OidbSvcTrpcTcp0xFE5_2Response } from '@snowluma/proto-defs/oidb';
|
||||
@@ -37,7 +38,7 @@ export namespace FetchGroupList {
|
||||
field32: allTrue, field5001: allTrue, field5002: false, field5003: false,
|
||||
},
|
||||
config2: {
|
||||
field1: false, field2: false, field3: false, field4: false,
|
||||
field1: false, field2: false, remark: true, field4: false,
|
||||
field5: false, field6: false, field7: false, field8: false,
|
||||
},
|
||||
config3: { field5: allTrue, field6: allTrue },
|
||||
|
||||
Reference in new issue
Block a user