Fix saving reply's peers

This commit is contained in:
Eduard Kuzmenko 2022-06-20 19:04:36 +04:00
parent 2513070a79
commit fc5a653759

View File

@ -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));
} }