Fixed bug with incorrect json field when creating a chat

This commit is contained in:
Denis Davydov 2018-07-26 12:19:47 +03:00
parent c158b9953b
commit 14f478dfec

View File

@ -64,7 +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()); emit createChatSuccess(jsonReceived["peerID"].toString(), jsonReceived["chatUUID"].toString());
} }
else else
{ {