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
pull/2105/head
Donat Zenichev 1 week ago committed by Richard Fuchs
parent 6ed2e239d3
commit 3cd93d4796

@ -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);
}

@ -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);
}
}

Loading…
Cancel
Save