diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java index 1bdd6877a..8c1affcb2 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java @@ -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()); diff --git a/src/main/res/menu/verification_choices.xml b/src/main/res/menu/verification_choices.xml index cad8dee9a..d0f19f35b 100644 --- a/src/main/res/menu/verification_choices.xml +++ b/src/main/res/menu/verification_choices.xml @@ -9,4 +9,8 @@ android:id="@+id/manual_verification" android:title="@string/manually_verify" /> + + \ No newline at end of file diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index cc38d86d0..bf8767b6e 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -1169,6 +1169,7 @@ 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. Could not verify fingerprint Manually verify + Blind trust Secrets do not match Ask question Verify