diff options
author | fiaxh <git@lightrise.org> | 2022-02-08 22:04:36 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-02-08 22:13:59 +0100 |
commit | 8b473c890b74f5aed835db097b6eb3d03bef6a08 (patch) | |
tree | 2a0f40d8dd721761e3525ed9e022ca257b803ead /libdino/src/service/call_state.vala | |
parent | 43ea088f646a8b3a5c41699f48cf5f0b4e7d4107 (diff) | |
download | dino-8b473c890b74f5aed835db097b6eb3d03bef6a08.tar.gz dino-8b473c890b74f5aed835db097b6eb3d03bef6a08.zip |
Call Invite Message: Send 'finished' messages, include reasons
Diffstat (limited to 'libdino/src/service/call_state.vala')
-rw-r--r-- | libdino/src/service/call_state.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdino/src/service/call_state.vala b/libdino/src/service/call_state.vala index ecb69773..73b26650 100644 --- a/libdino/src/service/call_state.vala +++ b/libdino/src/service/call_state.vala @@ -130,6 +130,11 @@ public class Dino.CallState : Object { foreach (PeerState peer in peers_cpy) { peer.end(Xep.Jingle.ReasonElement.SUCCESS, reason_text); } + if (use_cim) { + XmppStream stream = stream_interactor.get_stream(call.account); + if (stream == null) return; + stream.get_module(Xep.CallInvites.Module.IDENTITY).send_finish(stream, cim_counterpart, cim_call_id, cim_message_type); + } call.state = Call.State.ENDED; } else if (call.state == Call.State.RINGING) { foreach (PeerState peer in peers_cpy) { |