From da611f505c0e9a8d8476de272967891efba48872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 5 Mar 2017 15:05:51 +0100 Subject: Facebook: Fix reseting chat name When user changed thread name from website and set it to "", in Miranda it previously stay "". Now it correctly generates new name from participant names. --- protocols/FacebookRM/src/communication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/communication.cpp') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 61e8a3de75..fb2447e8c1 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -353,7 +353,6 @@ void facebook_client::insert_reader(MCONTACT hContact, time_t timestamp, const s } } - std::wstring treaderName = _A2T(name.c_str(), CP_UTF8); std::wstring treaders; // Load old readers @@ -362,7 +361,8 @@ void facebook_client::insert_reader(MCONTACT hContact, time_t timestamp, const s treaders = std::wstring(told) + L", "; // Append new reader name and remember them - treaders += utils::text::prepare_name(treaderName, true); + std::string reader = utils::text::prepare_name(name, true); + treaders += _A2T(reader.c_str(), CP_UTF8); parent->setWString(hContact, FACEBOOK_KEY_MESSAGE_READERS, treaders.c_str()); } -- cgit v1.2.3