mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
retrigger key selection if openpgp key was deleted
This commit is contained in:
parent
7226fc0010
commit
dce8149aae
@ -259,8 +259,13 @@ public class PgpEngine {
|
||||
account);
|
||||
return;
|
||||
case OpenPgpApi.RESULT_CODE_ERROR:
|
||||
logError(account, (OpenPgpError) result.getParcelableExtra(OpenPgpApi.RESULT_ERROR));
|
||||
callback.error(R.string.unable_to_connect_to_keychain, account);
|
||||
OpenPgpError error = result.getParcelableExtra(OpenPgpApi.RESULT_ERROR);
|
||||
if (error != null && "signing subkey not found!".equals(error.getMessage())) {
|
||||
callback.error(0,account);
|
||||
} else {
|
||||
logError(account, error);
|
||||
callback.error(R.string.unable_to_connect_to_keychain, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -584,8 +584,15 @@ public abstract class XmppActivity extends Activity {
|
||||
|
||||
@Override
|
||||
public void error(int error, Account account) {
|
||||
if (error == 0 && account != null) {
|
||||
account.setPgpSignId(0);
|
||||
account.unsetPgpSignature();
|
||||
xmppConnectionService.databaseBackend.updateAccount(account);
|
||||
choosePgpSignId(account);
|
||||
} else {
|
||||
displayErrorDialog(error);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user