diff options
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 19597bf2bd..bf1ed05a38 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -714,8 +714,10 @@ int facebook_json_parser::parse_messages(std::string *pData, std::vector<faceboo auto participant = participants.find(from_id); if (participant == participants.end()) { // TODO: load name of this participant - participant->second.user_id = from_id; - proto->AddChatContact(tid.c_str(), participant->second, true); + chatroom_participant new_participant; + new_participant.user_id = from_id; + new_participant.nick = from_id; + proto->AddChatContact(tid.c_str(), new_participant, true); } participant = participants.find(from_id); |