summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/entities.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-10-02 20:08:00 +0000
committerRobert Pösel <robyer@seznam.cz>2013-10-02 20:08:00 +0000
commitbed8dcfa17b2f9de35a145826c2a4201e6daff13 (patch)
tree2111da805d7737ae05779199d7ee200d778b3987 /protocols/FacebookRM/src/entities.h
parent8fecb411c56387ef6db40abe96b8c935fddc6083 (diff)
Facebook: Multi user chat improvements
- Load unread messages at login - Mark received messages as read git-svn-id: http://svn.miranda-ng.org/main/trunk@6313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/entities.h')
-rw-r--r--protocols/FacebookRM/src/entities.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/entities.h b/protocols/FacebookRM/src/entities.h
index d18a939e7b..4eb4405f83 100644
--- a/protocols/FacebookRM/src/entities.h
+++ b/protocols/FacebookRM/src/entities.h
@@ -64,6 +64,7 @@ struct facebook_chatroom
HANDLE handle;
std::string chat_name;
+ std::string thread_id;
std::map<std::string, std::string> participants;
std::string message_readers;
@@ -74,9 +75,10 @@ struct facebook_chatroom
struct facebook_message
{
std::string user_id;
- std::string message_text;
std::string sender_name;
+ std::string message_text;
std::string message_id;
+ std::string thread_id;
DWORD time;
bool isIncoming;
bool isUnread;
@@ -84,7 +86,7 @@ struct facebook_message
facebook_message()
{
- this->user_id = this->message_text = this->sender_name = this->message_id = "";
+ this->user_id = this->message_text = this->sender_name = this->message_id = this->thread_id = "";
this->time = 0;
this->isUnread = this->isIncoming = true;
this->isChat = false;
@@ -93,9 +95,10 @@ struct facebook_message
facebook_message(const facebook_message& msg)
{
this->user_id = msg.user_id;
- this->message_text = msg.message_text;
this->sender_name = msg.sender_name;
+ this->message_text = msg.message_text;
this->message_id = msg.message_id;
+ this->message_id = msg.thread_id;
this->time = msg.time;
this->isIncoming = msg.isIncoming;
this->isUnread = msg.isUnread;