Fixed issue in GroupChat with contacts using phone number as username
This commit is contained in:
parent
a8558d5f29
commit
04093860b5
1 changed files with 6 additions and 1 deletions
|
@ -74,7 +74,12 @@ public class ContactAddress implements Serializable {
|
|||
|
||||
public Address getAddress() {
|
||||
String presence = contact.getPresenceModelForUriOrTel(address);
|
||||
return Factory.instance().createAddress(presence != null ? presence : address);
|
||||
Address addr = Factory.instance().createAddress(presence != null ? presence : address);
|
||||
// Remove the user=phone URI param if existing, it will break everything otherwise
|
||||
if (addr.hasUriParam("user")) {
|
||||
addr.removeUriParam("user");
|
||||
}
|
||||
return addr;
|
||||
}
|
||||
|
||||
public void setSelect(boolean select) {
|
||||
|
|
Loading…
Reference in a new issue