From 8786fdc0a7eedf33a801afebcd7aa93de4761f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?= <francois-simon.fauteux-chapleau@savoirfairelinux.com> Date: Fri, 5 Jul 2024 11:17:16 -0400 Subject: [PATCH] conversation_module: add peer to list of members when starting conversation This fixes a bug that was introduced in commit 239d136788632760eadda1cda1241edceda393cd. GitLab: #1025 Change-Id: I688bb22f39a96eae7dd4acb89225fd5962edfb07 --- src/jamidht/conversation_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jamidht/conversation_module.cpp b/src/jamidht/conversation_module.cpp index 4f2af546eb..83e74033ca 100644 --- a/src/jamidht/conversation_module.cpp +++ b/src/jamidht/conversation_module.cpp @@ -2068,7 +2068,7 @@ ConversationModule::startConversation(ConversationMode mode, const dht::InfoHash std::unique_lock lk(conv->mtx); conv->info.created = std::time(nullptr); conv->info.members.emplace(pimpl_->username_); - if (!otherMember) + if (otherMember) conv->info.members.emplace(otherMember.toString()); conv->conversation = conversation; addConvInfo(conv->info); -- GitLab