fix empty OTR verification window

This commit is contained in:
kosyak 2024-10-10 01:01:17 +02:00
parent 28c633deb8
commit 701c21ae4a
2 changed files with 2 additions and 1 deletions

View file

@ -836,6 +836,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
Intent intent = new Intent(ConversationsActivity.this, VerifyOTRActivity.class); Intent intent = new Intent(ConversationsActivity.this, VerifyOTRActivity.class);
intent.setAction(VerifyOTRActivity.ACTION_VERIFY_CONTACT); intent.setAction(VerifyOTRActivity.ACTION_VERIFY_CONTACT);
intent.putExtra("contact", conversation.getContact().getJid().asBareJid().toString()); intent.putExtra("contact", conversation.getContact().getJid().asBareJid().toString());
intent.putExtra("counterpart", conversation.getNextCounterpart().toString());
intent.putExtra(EXTRA_ACCOUNT, conversation.getAccount().getJid().asBareJid().toString()); intent.putExtra(EXTRA_ACCOUNT, conversation.getAccount().getJid().asBareJid().toString());
switch (menuItem.getItemId()) { switch (menuItem.getItemId()) {
case R.id.ask_question: case R.id.ask_question:

View file

@ -200,7 +200,7 @@ public class VerifyOTRActivity extends XmppActivity implements XmppConnectionSer
return false; return false;
} }
try { try {
this.mConversation = this.xmppConnectionService.find(this.mAccount, Jid.of(intent.getExtras().getString("contact")), null); this.mConversation = this.xmppConnectionService.find(this.mAccount, Jid.of(intent.getExtras().getString("contact")), Jid.of(intent.getExtras().getString("counterpart")));
if (this.mConversation == null) { if (this.mConversation == null) {
return false; return false;
} }