Remove obsolete comment about receiverUid
Delete an outdated comment block in fetchPrivateFileUrl that described receiverUid behavior (Lagrange.Core/NapCat and NTQQ fulllink timeout). No functional code changes were made aside from removing the explanatory comment; the surrounding logic (resolveSelfUid, void userId, and OIDB envelope creation) remains unchanged.
This commit is contained in:
1 parent
0464d6439f
commit
fe00774191
1 file changed
-5
@@ -749,11 +749,6 @@ export async function fetchGroupFileUrl(bridge: Bridge, groupId: number, fileId:
|
||||
export async function fetchPrivateFileUrl(bridge: Bridge, userId: number, fileId: string, fileHash: string): Promise<string> {
|
||||
const selfUid = await resolveSelfUid(bridge);
|
||||
void userId;
|
||||
|
||||
// Lagrange.Core/NapCat both build 0xE37_1200 with `receiverUid` set
|
||||
// to the current account UID when resolving an API-level private file
|
||||
// download URL. Using the peer UID can make NTQQ's fulllink handler
|
||||
// wait until timeout instead of returning an OIDB error.
|
||||
const env = makeOidbEnvelope<OidbPrivateFileDownloadReq>(0xE37, 1200, {
|
||||
subCommand: 1200,
|
||||
field2: 1,
|
||||
|
||||
Reference in new issue
Block a user