mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-11 11:45:01 -05:00
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) {
|
public Account findAccountByJid(final Jid accountJid) {
|
||||||
for (Account account : this.accounts) {
|
for (Account account : this.accounts) {
|
||||||
if (account.getJid().toBareJid().equals(accountJid)) {
|
if (account.getJid().toBareJid().equals(accountJid.toBareJid())) {
|
||||||
return account;
|
return account;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user