mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
accept/deny chatroom list subscription
This commit is contained in:
parent
8cc040065e
commit
55d7e53da0
1 changed files with 4 additions and 1 deletions
|
|
@ -57,8 +57,11 @@ void LocalConferenceListEventHandler::subscribeReceived (LinphoneEvent *lev, con
|
|||
return;
|
||||
|
||||
const string &xmlBody = string(linphone_content_get_string_buffer(body));
|
||||
if (xmlBody.empty())
|
||||
if (xmlBody.empty()) {
|
||||
linphone_event_deny_subscription(lev, LinphoneReasonDeclined);
|
||||
return;
|
||||
}
|
||||
linphone_event_accept_subscription(lev);
|
||||
|
||||
const LinphoneAddress *lAddr = linphone_event_get_from(lev);
|
||||
char *addrStr = linphone_address_as_string(lAddr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue