Fixed contact lookup for composing
This commit is contained in:
parent
23f47ea003
commit
79bfba7a09
1 changed files with 11 additions and 1 deletions
|
@ -627,7 +627,17 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
String displayName = LinphoneUtils.getAddressDisplayName(a);
|
LinphoneContact contact = ContactsManager.getInstance().findContactFromAddress(remoteAddr);
|
||||||
|
String displayName;
|
||||||
|
if (contact != null) {
|
||||||
|
if (contact.getFullName() != null) {
|
||||||
|
displayName = contact.getFullName();
|
||||||
|
} else {
|
||||||
|
displayName = LinphoneUtils.getAddressDisplayName(remoteAddr);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
displayName = LinphoneUtils.getAddressDisplayName(a);
|
||||||
|
}
|
||||||
composing.add(displayName);
|
composing.add(displayName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue