Browse Source

Fix saving reply's peers

master
Eduard Kuzmenko 2 years ago
parent
commit
fc5a653759
  1. 5
      src/lib/appManagers/utils/messages/getPeerIdsFromMessage.ts

5
src/lib/appManagers/utils/messages/getPeerIdsFromMessage.ts

@ -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…
Cancel
Save