update: laana version to v0.3.2

This commit is contained in:
Wesley F. Young 2024-10-09 19:03:56 +08:00
parent 64b9b0fe52
commit 634bda60af
2 changed files with 3 additions and 16 deletions

View File

@ -42,13 +42,13 @@
"image-size": "^1.1.1", "image-size": "^1.1.1",
"json-schema-to-ts": "^3.1.0", "json-schema-to-ts": "^3.1.0",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"vite": "^5.2.6", "vite": "5.4.6",
"vite-plugin-cp": "^4.0.8", "vite-plugin-cp": "^4.0.8",
"vite-tsconfig-paths": "^4.3.2" "vite-tsconfig-paths": "^4.3.2"
}, },
"dependencies": { "dependencies": {
"@laana-proto/def": "^0.3.0", "@laana-proto/def": "^0.3.2",
"express": "^5.0.0-beta.2", "express": "5.0.0",
"fluent-ffmpeg": "^2.1.2", "fluent-ffmpeg": "^2.1.2",
"log4js": "^6.9.1", "log4js": "^6.9.1",
"qrcode-terminal": "^0.12.0", "qrcode-terminal": "^0.12.0",

View File

@ -15,19 +15,6 @@ export class LaanaMessageActionImpl {
return { msgId: await this.sendMessage(params.message!, params.targetPeer!) }; return { msgId: await this.sendMessage(params.message!, params.targetPeer!) };
}, },
sendPackedMessages: async (params) => {
// first send every single message to self, then forward them to target peer
const sendMsgIds: string[] = [];
for (const message of params.messages) {
sendMsgIds.push(await this.sendMessage(message, params.targetPeer!));
}
const packedMsgId = await this.forwardMessageAsPacked(sendMsgIds, params.targetPeer!);
return {
packedMsgId,
msgIds: sendMsgIds,
};
},
getMessage: async (params) => { getMessage: async (params) => {
return { message: await this.getMessage(params.msgId) }; return { message: await this.getMessage(params.msgId) };
}, },