fix: #2100
This commit is contained in:
1 parent
450fb0429a
commit
89e8efc57e
7 files changed
+100
-10
No files matched your search
@@ -74,6 +74,7 @@ interface FileUUIDData {
|
||||
msgId?: string;
|
||||
elementId?: string;
|
||||
fileUUID?: string;
|
||||
busId?: number;
|
||||
}
|
||||
|
||||
class FileUUIDManager {
|
||||
@@ -105,6 +106,10 @@ export class FileNapCatOneBotUUIDWrap {
|
||||
return this.manager.encode({ peer, modelId, fileId, fileUUID }, endString, customUUID);
|
||||
}
|
||||
|
||||
public encodeGroupFile (peer: Peer, file: { fileModelId: string; fileId: string; busId: number; }): string {
|
||||
return this.manager.encode({ peer, modelId: file.fileModelId, fileId: file.fileId, fileUUID: file.fileId, busId: file.busId });
|
||||
}
|
||||
|
||||
public decodeModelId (uuid: string): FileUUIDData | undefined {
|
||||
return this.manager.decode(uuid);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user