refactor(protocol): send leftover OIDB envelopes through the shared caller

Moving a friend who is already in the target category still succeeds.
Media upload preflight now uses the same envelope success and error
rules as other OIDB calls.
This commit is contained in:
DrSmoothl committed 2026-09-13 19:53:20 +08:00
1 parent 1bb8c9f46c
commit 6328890d34
12 files changed
+251 -175

No files matched your search

@@ -13,7 +13,6 @@ import type {
} from '@snowluma/proto-defs/oidb-actions/base';
vi.mock('@snowluma/protocol/bridge-oidb', () => ({
runOidb: vi.fn(async () => new Uint8Array()),
makeOidbEnvelope: vi.fn((_oidbCmd, _subCmd, body) => ({ body })),
encodeOidbEnv: vi.fn(() => new Uint8Array()),
decodeOidbEnv: vi.fn(() => ({ body: {} })),