Skip to content
Snippets Groups Projects
Commit ab3e5231 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

conversation_module: return swarm's profile to the client for requests

Conversation's requests also have metadata attached which clients
must be able to access.

jami-client-qt#670

Change-Id: If02fffb5646074e993c090846ff998e83ab79d78
parent 4b2cc45f
Branches
No related tags found
No related merge requests found
......@@ -1484,6 +1484,12 @@ ConversationModule::updateConversationInfos(const std::string& conversationId,
std::map<std::string, std::string>
ConversationModule::conversationInfos(const std::string& conversationId) const
{
{
std::lock_guard<std::mutex> lk(pimpl_->conversationsRequestsMtx_);
auto itReq = pimpl_->conversationsRequests_.find(conversationId);
if (itReq != pimpl_->conversationsRequests_.end())
return itReq->second.metadatas;
}
std::lock_guard<std::mutex> lk(pimpl_->conversationsMtx_);
// Add a new member in the conversation
auto it = pimpl_->conversations_.find(conversationId);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment