git » sdk » commit 35cbacf

Show as still outgoing unti other side answers

author Stephen Paul Weber
2025-10-29 20:14:58 UTC
committer Stephen Paul Weber
2025-10-29 20:14:58 UTC
parent cf2ea89622db798c7e61028ea0bba98439a40b4f

Show as still outgoing unti other side answers

borogove/calls/Session.hx +8 -0

diff --git a/borogove/calls/Session.hx b/borogove/calls/Session.hx
index aaa769d..dcd1f81 100644
--- a/borogove/calls/Session.hx
+++ b/borogove/calls/Session.hx
@@ -703,4 +703,12 @@ class OutgoingSession extends InitiatedSession {
 		  .then((_) -> transportInfo(stanza));
 		return this;
 	}
+
+	override public function callStatus() {
+		return if (pc == null || remoteDescription == null) {
+			return Outgoing;
+		} else {
+			return super.callStatus();
+		}
+	}
 }