feat(protocol): decode online device snapshots
Decode Event 0x210 subtype 349 into typed online-device snapshots, including QQ-compatible low-byte client type normalization and one-entry-per-device-category projection. Keep replacement snapshots outside system-message deduplication, reject malformed device identities observably, and add wire-level regressions for complete, packed, repeated, and invalid payloads. Live verification covered mobile account switching without requiring native changes.
This commit is contained in:
8 files changed
+279
-3
No files matched your search
@@ -97,6 +97,8 @@ const CONVERTERS: ConverterRegistry = {
|
||||
// Internal-only: async voice-to-text result, correlated by a pending
|
||||
// fetch_ptt_text; never emitted as an OneBot event.
|
||||
ptt_trans_result: null,
|
||||
// Internal-only cache snapshot consumed by Bridge.getOnlineClients().
|
||||
online_devices_changed: null,
|
||||
};
|
||||
|
||||
export async function convertEvent(
|
||||
|
||||
Reference in new issue
Block a user