OTR & another.im #23
|
@ -833,6 +833,12 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
|
|||
PopupMenu popup = new PopupMenu(this, view);
|
||||
popup.inflate(R.menu.verification_choices);
|
||||
popup.setOnMenuItemClickListener(menuItem -> {
|
||||
if (menuItem.getItemId() == R.id.blind_trust) {
|
||||
conversation.verifyOtrFingerprint();
|
||||
xmppConnectionService.syncRosterToDisk(conversation.getAccount());
|
||||
return true;
|
||||
}
|
||||
|
||||
Intent intent = new Intent(ConversationsActivity.this, VerifyOTRActivity.class);
|
||||
intent.setAction(VerifyOTRActivity.ACTION_VERIFY_CONTACT);
|
||||
intent.putExtra("contact", conversation.getContact().getJid().asBareJid().toString());
|
||||
|
|
|
@ -9,4 +9,8 @@
|
|||
android:id="@+id/manual_verification"
|
||||
android:title="@string/manually_verify" />
|
||||
|
||||
<item
|
||||
android:id="@+id/blind_trust"
|
||||
android:title="@string/otr_blind_trust" />
|
||||
|
||||
</menu>
|
|
@ -1169,6 +1169,7 @@
|
|||
<string name="manual_verification_explanation">Carefully compare the fingerprint shown below with the fingerprint of your contact.\nYou can use any trusted form of communication like an encrypted e-mail or a telephone call to exchange those.</string>
|
||||
<string name="could_not_verify_fingerprint">Could not verify fingerprint</string>
|
||||
<string name="manually_verify">Manually verify</string>
|
||||
<string name="otr_blind_trust">Blind trust</string>
|
||||
<string name="secrets_do_not_match">Secrets do not match</string>
|
||||
<string name="ask_question">Ask question</string>
|
||||
<string name="verify">Verify</string>
|
||||
|
|
Loading…
Reference in a new issue