refactor: base server & setting ui

This commit is contained in:
linyuchen
2024-02-20 03:25:16 +08:00
parent 5094ba724a
commit c1dd309b21
31 changed files with 368 additions and 281 deletions

View File

@@ -0,0 +1,22 @@
import {ActionName} from "./types";
import BaseAction from "./BaseAction";
import {NTQQApi} from "../../ntqqapi/ntcall";
import {getHistoryMsgByShortId} from "../../common/data";
interface Payload {
message_id: number
}
class DeleteMsg extends BaseAction<Payload, void> {
actionName = ActionName.DeleteMsg
protected async _handle(payload:Payload){
let msg = getHistoryMsgByShortId(payload.message_id)
await NTQQApi.recallMsg({
chatType: msg.chatType,
peerUid: msg.peerUid
}, [msg.msgId])
}
}
export default DeleteMsg