diff options
author | fiaxh <git@lightrise.org> | 2021-04-11 14:33:51 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-04-11 15:09:28 +0200 |
commit | 369755781e4d4fae2f6d790b93ba824e7e049c33 (patch) | |
tree | 8bcff68df8b4644f39c4cecd5e143d9eea9bf550 /libdino/src/service/calls.vala | |
parent | 0707fd9ac466aa5280565f5ba9ced261d725ca42 (diff) | |
download | dino-369755781e4d4fae2f6d790b93ba824e7e049c33.tar.gz dino-369755781e4d4fae2f6d790b93ba824e7e049c33.zip |
Send JMI retract
Diffstat (limited to 'libdino/src/service/calls.vala')
-rw-r--r-- | libdino/src/service/calls.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdino/src/service/calls.vala b/libdino/src/service/calls.vala index d8cb7990..b7374607 100644 --- a/libdino/src/service/calls.vala +++ b/libdino/src/service/calls.vala @@ -136,6 +136,7 @@ namespace Dino { sessions[call].terminate(Xep.Jingle.ReasonElement.CANCEL, null, "cancel"); } else { // Only a JMI so far + stream.get_module(Xep.JingleMessageInitiation.Module.IDENTITY).send_session_retract_to_peer(stream, call.counterpart, jmi_sid[call.account]); } call.state = Call.State.MISSED; } else { @@ -207,6 +208,11 @@ namespace Dino { public void mute_own_video(Call call, bool mute) { we_should_send_video[call] = !mute; + if (!sessions.has_key(call)) { + // Call hasn't been established yet + return; + } + Xep.JingleRtp.Module rtp_module = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY); if (video_content_parameter.has_key(call) && |