Skip to content

Commit

Permalink
sepinf-inc#2286: add participants metadata for Telegram private chats…
Browse files Browse the repository at this point in the history
… parsed internally
  • Loading branch information
aberenguel committed Aug 8, 2024
1 parent f8e9a1f commit d7e9ddf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ private void generateChat(Chat c, Contact account, Extractor e, IItemSearcher se
if (participantsCount > 0) {
chatMetadata.add(ExtraProperties.PARTICIPANTS + "Count", String.valueOf(participantsCount));
}
} else {
addParticipantFields(chatMetadata, e, ExtraProperties.PARTICIPANTS, c.getId());
addParticipantFields(chatMetadata, e, ExtraProperties.PARTICIPANTS, e.getUserAccount().getId());
}

List<Message> msgSubset = c.getMessages().subList(firstMsg, nextMsg);
Expand Down

0 comments on commit d7e9ddf

Please sign in to comment.