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

This commit is contained in:
Ghislain MARY 2017-11-09 11:44:35 +01:00
parent bb0b486a0e
commit deb7f90ab9

View file

@ -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++;