fix(core): resolve missing doubt-friend account ids before handle
Linux list replies often omit the id that the handle packet requires, and a cache-only lookup cannot see filtered applicants. Fixes #457
This commit is contained in:
4 files changed
+159
-10
No files matched your search
@@ -60,6 +60,18 @@ describe('GetDoubtBuddyReq namespace', () => {
|
||||
expect(GetDoubtBuddyReq.deserialize({} as any, { status: 1 })).toEqual([]);
|
||||
});
|
||||
|
||||
it('keeps an empty uid when the reply only carries the account number', () => {
|
||||
expect(GetDoubtBuddyReq.deserialize({} as any, {
|
||||
status: 1,
|
||||
body: { list: [{ nick: 'Alice', uin: 12345n, reqTime: 1700000000n }] },
|
||||
})).toEqual([
|
||||
{
|
||||
uid: '', user_id: 12345, nick: 'Alice', source: '',
|
||||
reason: '', msg: '', group_code: '', reqTime: 1700000000,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it('keeps the uid string and does not reread it as the account number', async () => {
|
||||
const respEnv: OidbBase<OidbDoubtGetResp> = {
|
||||
command: 0xD69, subCommand: 0,
|
||||
|
||||
Reference in new issue
Block a user