don't use xmpp uri for self verification if account is disabled

This commit is contained in:
Daniel Gultsch 2016-11-19 21:31:41 +01:00
parent 6362799d56
commit cb639f3fdd

View File

@ -845,7 +845,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
private boolean handleJid(Invite invite) {
Account account = xmppConnectionService.findAccountByJid(invite.getJid());
if (account != null && invite.hasFingerprints()) {
if (account != null && !account.isOptionSet(Account.OPTION_DISABLED) && invite.hasFingerprints()) {
if (xmppConnectionService.verifyFingerprints(account,invite.getFingerprints())) {
switchToAccount(account);
finish();