Commit deb7f90a authored by Ghislain MARY's avatar Ghislain MARY

Prevent adding ourselves as a participant of a client group chat room.

parent bb0b486a
......@@ -45,7 +45,7 @@ list<Address> ClientGroupChatRoomPrivate::cleanAddressesList (const list<Address
cleanedList.sort();
cleanedList.unique();
for (auto it = cleanedList.begin(); it != cleanedList.end();) {
if (q->findParticipant(*it))
if (q->findParticipant(*it) || (q->getMe()->getAddress() == SimpleAddress(*it)))
it = cleanedList.erase(it);
else
it++;
......
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