Fixed sender display name above each message in chat room

This commit is contained in:
Sylvain Berfini 2017-11-30 10:34:23 +01:00
parent 055e4463c7
commit b17081e504

View file

@ -222,7 +222,7 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
for (LinphoneNumberOrAddress noa : getNumbersOrAddresses()) {
if (noa.isSIPAddress()) {
String value = noa.getValue();
if (value.equals(address) || value.equals("sip:" + address)) {
if (address.startsWith(value) || value.equals("sip:" + address)) { // Startswith is to workaround the fact the address may have a ;gruu= at the end...
return true;
}
}