diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-05 22:59:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-05 22:59:37 +0300 |
commit | db730d27fae5996fc7cf02a987ad138c2d0e8b7c (patch) | |
tree | 9ec340894eb96e793daf2aa1f07f27f955f447c5 /protocols/FacebookRM/src/entities.h | |
parent | 703e6701f8bc7e3ee2684bb79c0e171fb3cf6a0c (diff) |
code cleaning
Diffstat (limited to 'protocols/FacebookRM/src/entities.h')
-rw-r--r-- | protocols/FacebookRM/src/entities.h | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/protocols/FacebookRM/src/entities.h b/protocols/FacebookRM/src/entities.h index 5b10bd53ee..3fd692a88d 100644 --- a/protocols/FacebookRM/src/entities.h +++ b/protocols/FacebookRM/src/entities.h @@ -77,11 +77,9 @@ struct chatroom_participant { std::string user_id; std::string nick; - ParticipantRole role; - bool is_former; - bool loaded; - - chatroom_participant() : loaded(false), is_former(false), role(ROLE_NONE) {} + ParticipantRole role = ROLE_NONE; + bool is_former = false; + bool loaded = false; }; struct facebook_chatroom @@ -89,17 +87,15 @@ struct facebook_chatroom std::string thread_id; std::wstring chat_name; std::map<std::string, chatroom_participant> participants; - bool can_reply; - bool is_archived; - bool is_subscribed; - bool read_only; - - facebook_chatroom(std::string thread_id) : thread_id(thread_id) { - this->can_reply = true; - this->is_archived = false; - this->is_subscribed = true; - this->read_only = false; - } + bool can_reply = true; + bool is_archived = false; + bool is_subscribed = true; + bool read_only = false; + int64_t tmp_msgid = 0; + + facebook_chatroom(std::string _thread_id) : + thread_id(_thread_id) + {} }; struct facebook_message |