summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-03-05 15:05:51 +0100
committerRobert Pösel <robyer@seznam.cz>2017-03-05 15:06:02 +0100
commitda611f505c0e9a8d8476de272967891efba48872 (patch)
tree9c3b2ea1ca752b9a3628748fafa6cd78dbb0b101 /protocols/FacebookRM/src/communication.cpp
parent5417b1e4a79c86ac64cb3f84cde17eec2e0d0c87 (diff)
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.
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 2 insertions, 2 deletions
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());
}