Fix fetching accounts by JIDs
Fixes a crash when publishing an avatar
This commit is contained in:
parent
84b2ce10b7
commit
5765a91db6
|
@ -1825,7 +1825,7 @@ public class XmppConnectionService extends Service {
|
|||
|
||||
public Account findAccountByJid(final Jid accountJid) {
|
||||
for (Account account : this.accounts) {
|
||||
if (account.getJid().toBareJid().equals(accountJid)) {
|
||||
if (account.getJid().toBareJid().equals(accountJid.toBareJid())) {
|
||||
return account;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue