Commit c613beed authored by Ghislain MARY's avatar Ghislain MARY

Allow joining a ClientGroupChatRoom while it is being left.

parent 3d53c71b
......@@ -393,7 +393,10 @@ void ClientGroupChatRoom::join () {
if (!session && ((getState() == ChatRoom::State::Instantiated) || (getState() == ChatRoom::State::Terminated))) {
d->bgTask.start();
session = d->createSession();
session->startInvite(nullptr, "", nullptr);
}
if (session) {
if (getState() != ChatRoom::State::TerminationPending)
session->startInvite(nullptr, "", nullptr);
d->setState(ChatRoom::State::CreationPending);
}
}
......
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