Fixed the bug when chat was not created when signed up to create a chat.

This commit is contained in:
Denis Davydov 2018-07-26 11:53:05 +03:00
parent 630f739538
commit ee60b8b092

View File

@ -64,6 +64,7 @@ void Handler::createChatMethod(QJsonObject jsonReceived)
jsonSend["action"] = "createChatSuccess"; jsonSend["action"] = "createChatSuccess";
jsonSend["chatID"] = jsonReceived["chatUUID"].toString(); jsonSend["chatID"] = jsonReceived["chatUUID"].toString();
network->sendDatagram(jsonSend, *peerReceiver); network->sendDatagram(jsonSend, *peerReceiver);
emit createChatSuccess(jsonReceived["peerID"].toString(), jsonReceived["chatID"].toString());
} }
else else
{ {