aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/call_peer_state.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-02-08 22:04:36 +0100
committerfiaxh <git@lightrise.org>2022-02-08 22:13:59 +0100
commit8b473c890b74f5aed835db097b6eb3d03bef6a08 (patch)
tree2a0f40d8dd721761e3525ed9e022ca257b803ead /libdino/src/service/call_peer_state.vala
parent43ea088f646a8b3a5c41699f48cf5f0b4e7d4107 (diff)
downloaddino-8b473c890b74f5aed835db097b6eb3d03bef6a08.tar.gz
dino-8b473c890b74f5aed835db097b6eb3d03bef6a08.zip
Call Invite Message: Send 'finished' messages, include reasons
Diffstat (limited to 'libdino/src/service/call_peer_state.vala')
-rw-r--r--libdino/src/service/call_peer_state.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdino/src/service/call_peer_state.vala b/libdino/src/service/call_peer_state.vala
index de5c69cb..5fa77926 100644
--- a/libdino/src/service/call_peer_state.vala
+++ b/libdino/src/service/call_peer_state.vala
@@ -97,6 +97,10 @@ public class Dino.PeerState : Object {
}
public async void call_resource(Jid full_jid) {
+ if (!call_state.accepted) {
+ warning("Tried to call resource in an unaccepted call?!");
+ return;
+ }
XmppStream? stream = stream_interactor.get_stream(call.account);
if (stream == null) return;