mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Check keywords before setting the OneToOne capability on a ClientGroupChatRoom.
This commit is contained in:
parent
550502650a
commit
fc852805fa
1 changed files with 4 additions and 1 deletions
|
|
@ -17,6 +17,8 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "linphone/utils/utils.h"
|
||||
|
||||
#include "address/address-p.h"
|
||||
|
|
@ -522,7 +524,8 @@ void ClientGroupChatRoom::onConferenceCreated (const IdentityAddress &addr) {
|
|||
|
||||
void ClientGroupChatRoom::onConferenceKeywordsChanged (const vector<string> &keywords) {
|
||||
L_D();
|
||||
d->capabilities |= ClientGroupChatRoom::Capabilities::OneToOne;
|
||||
if (find(keywords.cbegin(), keywords.cend(), "one-to-one") != keywords.cend())
|
||||
d->capabilities |= ClientGroupChatRoom::Capabilities::OneToOne;
|
||||
}
|
||||
|
||||
void ClientGroupChatRoom::onConferenceTerminated (const IdentityAddress &addr) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue