Skip to content
Snippets Groups Projects
Unverified Commit c25daaaf authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #1850 from raman-bt/6115-circular-relationships

6115: Fix circular relationships between accounts for messages with u…
parents 7e33d5d2 be8aa376
No related branches found
No related tags found
No related merge requests found
......@@ -551,16 +551,16 @@ public BlackboardArtifact addMessage(String messageType,
addAttributeIfNotNull(ATTRIBUTE_TYPE.TSK_PHONE_NUMBER_TO, recipientsStr, attributes);
break;
default: // direction UNKNOWN
// if no sender, selfAccount substitutes caller.
if (StringUtils.isEmpty(senderId)) {
// if no sender, selfAccount substitutes caller.
senderAccountInstance = getSelfAccountInstance();
}
// if no recipient specified, selfAccount substitutes recipient
if (isEffectivelyEmpty(recipientIdsList)) {
}
else if (isEffectivelyEmpty(recipientIdsList)) {
// else if no recipient specified, selfAccount substitutes recipient
recipientsStr = getSelfAccountInstance().getAccount().getTypeSpecificID();
recipientAccountsList.add(getSelfAccountInstance());
}
// save phone numbers in direction agnostic attributes
if (senderAccountInstance != null) {
addAttributeIfNotNull(ATTRIBUTE_TYPE.TSK_PHONE_NUMBER, senderAccountInstance.getAccount().getTypeSpecificID(), attributes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment