Commit d8e556d2 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix previous commit.

parent 3d5e1672
......@@ -379,12 +379,13 @@ void ServerGroupChatRoomPrivate::addCompatibleParticipants (const IdentityAddres
addresses.sort();
addresses.merge(addressesToAdd);
addresses.unique();
if (addresses.size() > 2) {
if (session && (addresses.size() > 2)) {
// Decline the participants addition to prevent having more than 2 participants in a one-to-one chat room.
session->decline(LinphoneReasonNotAcceptable);
}
}
acceptSession(session);
if (session)
acceptSession(session);
// Remove participants for compatible list that do not have at least one device in the Present state
removeNonPresentParticipants(compatibleParticipants);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment