From 3cd93d47961f3c86c21d1788494672c35ce96b0a Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Fri, 8 May 2026 08:32:20 +0200 Subject: [PATCH] MT#61856 call.c: correction for `unsubscribe_all_from_monologue()` This wrapper should likely call the `__unsubscribe_all_from_monologue()` instead of the `__unsubscribe_monologue_from_all()`, because the latter is already used by another wrapper of the same name. And "unsubscriber all from monologue" name hints that we unsubscribe our subscribers from us. Change-Id: I6a16ab7320c619adedd9ba7c05e0d9a401971bfe --- daemon/call.c | 2 +- daemon/call_interfaces.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index c8b1a745c..dc04b3274 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -4218,7 +4218,7 @@ void unsubscribe_monologue_from_all(struct call_monologue *ml) { } void unsubscribe_all_from_monologue(struct call_monologue *ml) { - __unsubscribe_monologue_from_all(ml, subscription_store_ht_null()); + __unsubscribe_all_from_monologue(ml); } diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 4d9f301ac..67d8c9f99 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -2613,8 +2613,10 @@ const char *call_mesh_ng(ng_command_ctx_t *ctx) { return "Given from-tag not found"; if (flags.unsubscribe) { + /* unsubscribe these medias from other */ unsubscribe_monologue_from_all(tag->from_ml); if (flags.bidirectional) + /* drop all subscribers of these medias */ unsubscribe_all_from_monologue(tag->from_ml); } }