Fix saving reply's peers
This commit is contained in:
parent
2513070a79
commit
fc5a653759
@ -49,5 +49,10 @@ export default function getPeerIdsFromMessage(message: Message.message | Message
|
|||||||
peerIds.push(...chatIds.filter(Boolean).map((chatId) => chatId.toPeerId(true)));
|
peerIds.push(...chatIds.filter(Boolean).map((chatId) => chatId.toPeerId(true)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const recentRepliers = ((message as Message.message).replies)?.recent_repliers;
|
||||||
|
if(recentRepliers?.length) {
|
||||||
|
peerIds.push(...recentRepliers.map((reply) => getPeerId(reply)));
|
||||||
|
}
|
||||||
|
|
||||||
return new Set(peerIds.filter(Boolean));
|
return new Set(peerIds.filter(Boolean));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user