Fix fetching accounts by JIDs

Fixes a crash when publishing an avatar
This commit is contained in:
Sam Whited 2014-11-16 10:04:45 -05:00
parent 84b2ce10b7
commit 5765a91db6

View file

@ -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;
}
}