fix return to call

This commit is contained in:
Daniel Gultsch 2024-03-07 13:37:40 +01:00
parent 55fd7157c8
commit 5cca842e66
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -1560,19 +1560,20 @@ public class ConversationFragment extends XmppFragment
RtpSessionActivity.EXTRA_ACCOUNT,
id.getAccount().getJid().asBareJid().toEscapedString());
intent.putExtra(RtpSessionActivity.EXTRA_WITH, id.getWith().toEscapedString());
if (id instanceof AbstractJingleConnection.Id) {
if (id instanceof AbstractJingleConnection) {
intent.setAction(Intent.ACTION_VIEW);
intent.putExtra(RtpSessionActivity.EXTRA_SESSION_ID, id.getSessionId());
} else if (id instanceof JingleConnectionManager.RtpSessionProposal) {
if (((JingleConnectionManager.RtpSessionProposal) id).media.contains(Media.VIDEO)) {
startActivity(intent);
} else if (id instanceof JingleConnectionManager.RtpSessionProposal proposal) {
if (proposal.media.contains(Media.VIDEO)) {
intent.setAction(RtpSessionActivity.ACTION_MAKE_VIDEO_CALL);
} else {
intent.setAction(RtpSessionActivity.ACTION_MAKE_VOICE_CALL);
}
}
startActivity(intent);
}
}
}
private void togglePinned() {
final boolean pinned =