fix(protocol): restore unidirectional friend lookup

Read the unidirectional friend list correctly and preserve service errors instead of returning an empty list for rejected requests.

Fixes #608
This commit is contained in:
DrSmoothl committed 2026-10-31 18:28:05 +08:00
1 parent bd14b0a98e
commit 26639ffef7
4 files changed
+123 -99

No files matched your search

+6 -6
View File
@@ -352,12 +352,12 @@ describe('apis/profile', () => {
errorCode: 0,
errorMessage: '',
responseData: Buffer.from(
protobuf_encode<OidbBase<Oidb0xe17Resp>>({
body: {
jsonBody: JSON.stringify({
rpt_block_list: [{ uin: 10001 }, { uin: 10002 }],
}),
} as any,
protobuf_encode<Oidb0xe17Resp>({
jsonBody: JSON.stringify({
ActionStatus: 'OK',
ErrorCode: 0,
rpt_block_list: [{ uin: 10001 }, { uin: 10002 }],
}),
}),
),
});