fix(protocol): restore forward image media and drop file receipts
Bot-built merged forwards left hollow NT images after long-msg fetch, so get_forward_msg returned empty file/url. Decode now rebuilds identity from md5, ignores stubs, and forward uploads keep a legacy image sibling. C2C offline-file download receipts were reported as the peer sending a file. Treat downloadFlag=2 as a receipt and drop it from the chat stream.
This commit is contained in:
10 files changed
+340
-24
No files matched your search
@@ -74,15 +74,17 @@ export interface Ptt {
|
||||
// 1. 发送端必填:字段 9/50/55(subcmd=1, dangerEvel=0, expireTime=当前时间+7天)。
|
||||
// 2. 接收端只读:核心标识槽位(Uuid/Md5/Name/Size/Hash)。
|
||||
export interface NotOnlineFile {
|
||||
fileType?: pb<1, uint_32>;
|
||||
fileUuid?: pb<3, string>;
|
||||
fileMd5?: pb<4, bytes>;
|
||||
fileName?: pb<5, string>;
|
||||
fileSize?: pb<6, uint_64>;
|
||||
subcmd?: pb<9, uint_32>; // 发送必填:固定为 1
|
||||
dangerEvel?: pb<50, uint_32>; // 发送必填:固定为 0
|
||||
expireTime?: pb<55, uint_32>; // 发送必填:过期时间戳(now + 7 days)
|
||||
fileHash?: pb<57, string>;
|
||||
fileType?: pb<1, uint_32>;
|
||||
fileUuid?: pb<3, string>;
|
||||
fileMd5?: pb<4, bytes>;
|
||||
fileName?: pb<5, string>;
|
||||
fileSize?: pb<6, uint_64>;
|
||||
subcmd?: pb<9, uint_32>; // 发送必填:固定为 1
|
||||
downloadFlag?: pb<12, uint_32>; // 2 = 对方已下载的回执,不是一条新文件消息
|
||||
dangerEvel?: pb<50, uint_32>; // 发送必填:固定为 0
|
||||
expireTime?: pb<55, uint_32>; // 发送必填:过期时间戳(now + 7 days)
|
||||
pbReserve?: pb<56, bytes>;
|
||||
fileHash?: pb<57, string>;
|
||||
}
|
||||
|
||||
// RichText
|
||||
|
||||
Reference in new issue
Block a user