Skip to content
Snippets Groups Projects
Commit 85e79e56 authored by François-Simon Fauteux-Chapleau's avatar François-Simon Fauteux-Chapleau Committed by Adrien Béraud
Browse files

jamiaccount: don't needlessly force new connection

GitLab: #1083
Change-Id: If43a74758bbceff69e57baa2fc70c4526ec1f9f0
parent cd0eca6b
No related branches found
No related tags found
No related merge requests found
......@@ -3685,8 +3685,7 @@ JamiAccount::callConnectionClosed(const DeviceId& deviceId, bool eraseDummy)
void
JamiAccount::requestMessageConnection(const std::string& peerId,
const DeviceId& deviceId,
const std::string& connectionType,
bool forceNewConnection)
const std::string& connectionType)
{
auto* handler = static_cast<MessageChannelHandler*>(
channelHandlers_[Uri::Scheme::MESSAGE].get());
......@@ -3711,8 +3710,7 @@ JamiAccount::requestMessageConnection(const std::string& peerId,
acc->messageEngine_.onPeerOnline(peerId, deviceId.toString(), true);
}
},
connectionType,
forceNewConnection);
connectionType);
}
void
......@@ -3722,7 +3720,7 @@ JamiAccount::requestSIPConnection(const std::string& peerId,
bool forceNewConnection,
const std::shared_ptr<SIPCall>& pc)
{
requestMessageConnection(peerId, deviceId, connectionType, forceNewConnection);
requestMessageConnection(peerId, deviceId, connectionType);
if (peerId == getUsername()) {
if (!syncModule()->isConnected(deviceId))
channelHandlers_[Uri::Scheme::SYNC]
......
......@@ -843,9 +843,8 @@ private:
const DeviceId& deviceId);
void requestMessageConnection(const std::string& peerId,
const DeviceId& deviceId,
const std::string& connectionType,
bool forceNewConnection);
const DeviceId& deviceId,
const std::string& connectionType);
// File transfers
std::mutex transfersMtx_ {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment