mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Changed in Libresapi: Closing distant connection (chat) requires now ChatId that is used in other functions, instead of DistantCharPeerId
This commit is contained in:
parent
4b25684c44
commit
74a56f646d
1 changed files with 5 additions and 3 deletions
|
@ -1435,10 +1435,12 @@ void ChatHandler::handleCloseDistantChatConnexion(Request& req, Response& resp)
|
|||
{
|
||||
std::string distant_chat_hex;
|
||||
req.mStream << makeKeyValueReference("distant_chat_hex", distant_chat_hex);
|
||||
ChatId chatId(distant_chat_hex);
|
||||
|
||||
DistantChatPeerId chat_id(distant_chat_hex);
|
||||
if (mRsMsgs->closeDistantChatConnexion(chat_id)) resp.setOk();
|
||||
else resp.setFail("Failed to close distant chat");
|
||||
if (mRsMsgs->closeDistantChatConnexion(chatId.toDistantChatId()))
|
||||
resp.setOk();
|
||||
else
|
||||
resp.setFail("Failed to close distant chat");
|
||||
}
|
||||
|
||||
void ChatHandler::handleCreateLobby(Request& req, Response& resp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue