style&&chore: 逐步清退老版本代码

This commit is contained in:
手瓜一十雪 committed 2024-08-14 00:47:31 +08:00
1 parent 8e14b39969
commit 29b51adf7d
3 files changed
+5 -13

No files matched your search

+1 -3
View File
@@ -20,9 +20,7 @@ export default class DelEssenceMsg extends BaseAction<Payload, any> {
async _handle(payload: Payload): Promise<any> {
const NTQQGroupApi = this.CoreContext.apis.GroupApi;
const msg = MessageUnique.getMsgIdAndPeerByShortId(parseInt(payload.message_id.toString()));
if (!msg) {
throw new Error('msg not found');
}
if (!msg) throw new Error('msg not found');
return await NTQQGroupApi.removeGroupEssence(
msg.Peer.peerUid,
msg.MsgId,