Improved findContact to use the aliases as well
This commit is contained in:
parent
2d4a2497dc
commit
083950ac00
1 changed files with 2 additions and 1 deletions
|
@ -204,8 +204,9 @@ public class ContactsManager extends ContentObserver {
|
||||||
if (lpc != null) {
|
if (lpc != null) {
|
||||||
normalized = lpc.normalizePhoneNumber(noa.getValue());
|
normalized = lpc.normalizePhoneNumber(noa.getValue());
|
||||||
}
|
}
|
||||||
|
String alias = c.getPresenceModelForUri(noa.getValue());
|
||||||
|
|
||||||
if ((noa.isSIPAddress() && noa.getValue().equals(sipUri)) || (normalized != null && !noa.isSIPAddress() && normalized.equals(username)) || (!noa.isSIPAddress() && noa.getValue().equals(username))) {
|
if ((noa.isSIPAddress() && noa.getValue().equals(sipUri)) || (alias != null && alias.equals(sipUri)) || (normalized != null && !noa.isSIPAddress() && normalized.equals(username)) || (!noa.isSIPAddress() && noa.getValue().equals(username))) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue