Skip to content

Commit

Permalink
sepinf-inc#2286: fixes setting metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
aberenguel committed Aug 9, 2024
1 parent 2b2713d commit 217fdc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,9 @@ else if (parentItem.getMediaType().equals(MediaTypes.UFED_MESSAGE_MIME)) {

String ufedChatType = item.getMetadata().get(ExtraProperties.UFED_META_PREFIX + "ChatType");
if (ufedChatType != null && CHAT_TYPE_MAP.containsKey(ufedChatType)) {
item.setExtraAttribute(ExtraProperties.COMMUNICATION_TYPE, CHAT_TYPE_MAP.get(ufedChatType));
item.getMetadata().set(ExtraProperties.COMMUNICATION_TYPE, CHAT_TYPE_MAP.get(ufedChatType));
} else {
item.setExtraAttribute(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_UNKONWN);
item.getMetadata().set(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_UNKONWN);
}
}
if ("InstantMessage".equals(type) || "Email".equals(type) || "Call".equals(type) || "SMS".equals(type) //$NON-NLS-4$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ private void generateChat(Chat c, Contact account, Extractor e, IItemSearcher se
}

if (c.isChannel()) {
chatMetadata.add(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_BROADCAST);
chatMetadata.set(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_BROADCAST);
} else if (c.isGroup()) {
chatMetadata.add(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_GROUP);
chatMetadata.set(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_GROUP);
} else {
chatMetadata.add(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_PRIVATE);
chatMetadata.set(ExtraProperties.COMMUNICATION_TYPE, CommunicationConstants.TYPE_PRIVATE);
}

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

0 comments on commit 217fdc0

Please sign in to comment.