Skip to content

Commit

Permalink
'#1880: Remove WA suffix before checking contact existence.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Oct 4, 2023
1 parent bfb0997 commit 0ca3426
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void extractContactList() throws WAExtractorException {
if (!id.endsWith(WAContact.waSuffix)) {
id += WAContact.waSuffix;
}
if (! directory.hasContact(id)) { // only recover contact if it does not exist already
if (! directory.hasContact(Util.getNameFromId(id))) { // only recover contact if it does not exist already
WAContact c = directory.getContact(id);
c.setDisplayName(nullToEmpty(row.getTextValue("ZHIGHLIGHTEDNAME"))); //$NON-NLS-1$
c.setWaName(nullToEmpty(row.getTextValue("ZFULLNAME"))); //$NON-NLS-1$
Expand Down

0 comments on commit 0ca3426

Please sign in to comment.