summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/messages.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-04-17 15:08:50 +0000
committerRobert Pösel <robyer@seznam.cz>2016-04-17 15:08:50 +0000
commit10113448da51cb8e01aedc75c348769b9ebbf0f5 (patch)
tree2f1f9675dd6e04f564f6c74fb767ce63a26f5a0b /protocols/FacebookRM/src/messages.cpp
parentac8ae1407f91cfb4a440e55e8a62b3365aec9ad2 (diff)
Facebook: Fix sending multi chat messages and codepage of their error messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@16692 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r--protocols/FacebookRM/src/messages.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp
index 487040e331..a7fdc4674f 100644
--- a/protocols/FacebookRM/src/messages.cpp
+++ b/protocols/FacebookRM/src/messages.cpp
@@ -109,8 +109,10 @@ void FacebookProto::SendChatMsgWorker(void *p)
if (!tid.empty()) {
if (facy.send_message(0, hContact, data->msg, &err_message) == SEND_MESSAGE_OK)
UpdateChat(data->chat_id.c_str(), facy.self_.user_id.c_str(), facy.self_.real_name.c_str(), data->msg.c_str());
- else
- UpdateChat(data->chat_id.c_str(), NULL, NULL, err_message.c_str());
+ else {
+ ptrA text(mir_utf8encode(err_message.c_str()));
+ UpdateChat(data->chat_id.c_str(), NULL, NULL, text);
+ }
}
}