From 921df52650b4d5bc6b725f28bbc0b3dd298d1989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 4 Mar 2015 12:05:59 +0000 Subject: Facebook: More unification for groupchat seen info and save groupchat "readers" into database in key "MessageReaders" (Unicode); Version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@12315 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/chat.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'protocols/FacebookRM/src/chat.cpp') diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp index f2108e48a6..4ed39f0afa 100644 --- a/protocols/FacebookRM/src/chat.cpp +++ b/protocols/FacebookRM/src/chat.cpp @@ -49,12 +49,7 @@ void FacebookProto::UpdateChat(const TCHAR *tchat_id, const char *id, const char gce.ptszUID = tid; CallServiceSync(MS_GC_EVENT, 0, reinterpret_cast(&gce)); - // TODO: keep it here or move it somewhere else? - std::map::iterator chatroom = facy.chat_rooms.find(tchat_id); - if (chatroom != facy.chat_rooms.end()) { - chatroom->second->message_readers.clear(); // TODO: move this to erase_reader method? - facy.erase_reader(ChatIDToHContact(std::tstring(tchat_id))); - } + facy.erase_reader(ChatIDToHContact(std::tstring(tchat_id))); } void FacebookProto::RenameChat(const char *chat_id, const char *name) -- cgit v1.2.3