From 02bab710b8d25b1fc37fe2a938fb228f0646ff6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 20 May 2026 18:04:19 +0800 Subject: [PATCH] Add protobuf_decode import to interaction actions Import protobuf_decode from @snowluma/proton in packages/core/src/bridge/actions/interaction.ts to enable decoding of protobuf messages within interaction-related bridge actions. No other changes to logic in this diff. --- packages/core/src/bridge/actions/interaction.ts | 2 +- packages/core/src/bridge/web-actions/cookies.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/bridge/actions/interaction.ts b/packages/core/src/bridge/actions/interaction.ts index 0f0df09e..c72c31a3 100644 --- a/packages/core/src/bridge/actions/interaction.ts +++ b/packages/core/src/bridge/actions/interaction.ts @@ -2,7 +2,7 @@ // and the related read-side "who reacted with X" query. None of these // edit message content — they're purely social signals. -import { protobuf_encode } from '@snowluma/proton'; +import { protobuf_decode, protobuf_encode } from '@snowluma/proton'; import type { Bridge } from '../bridge'; import { runOidb, makeOidbEnvelope } from '../bridge-oidb'; import type { diff --git a/packages/core/src/bridge/web-actions/cookies.ts b/packages/core/src/bridge/web-actions/cookies.ts index 7fe7523c..325ff0fd 100644 --- a/packages/core/src/bridge/web-actions/cookies.ts +++ b/packages/core/src/bridge/web-actions/cookies.ts @@ -35,7 +35,7 @@ export async function forceFetchClientKey(bridge: Bridge) { export async function getPSkey(bridge: Bridge, domainList: string[]) { const env = makeOidbEnvelope(0x102A, 0, { domainList }); const respBytes = await runOidb(bridge, 'OidbSvcTrpcTcp.0x102a_0', protobuf_encode>(env)); - const resp = decodeOidbEnv(respBytes).body; + const resp = protobuf_decode>(respBytes).body; const domainPskeyMap = new Map();