fix: 导入消息后出现一堆撤回提示

This commit is contained in:
Clansty 2022-03-17 12:12:01 +08:00
parent e8c47c1038
commit 7874dfa0fb
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ export default class DeleteMessageController {
private onTgDeletedMessage = async (event: DeletedMessageEvent) => {
if (!(event.peer instanceof Api.PeerChannel)) return;
// group anonymous bot
if (event._entities?.get('1087968824')) return;
const pair = this.instance.forwardPairs.find(event.peer.channelId);
if (!pair) return;
for (const messageId of event.deletedIds) {