From 73d90fba8c5a90e1195481efa7e59535cf156413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 24 May 2012 15:40:11 +0000 Subject: Update for Facebook RM (processing friend requests, searching support,...) git-svn-id: http://svn.miranda-ng.org/main/trunk@164 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/chat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/chat.cpp') diff --git a/protocols/FacebookRM/chat.cpp b/protocols/FacebookRM/chat.cpp index 7326254541..5fc0c8ac6e 100644 --- a/protocols/FacebookRM/chat.cpp +++ b/protocols/FacebookRM/chat.cpp @@ -22,7 +22,7 @@ along with this program. If not, see . #include "common.h" -void FacebookProto::UpdateChat(const char *chat_id, const char *id, const char *name, const char *message) +void FacebookProto::UpdateChat(const char *chat_id, const char *id, const char *name, const char *message, DWORD timestamp) { GCDEST gcd = { m_szModuleName }; gcd.ptszID = mir_a2t(chat_id); @@ -30,7 +30,7 @@ void FacebookProto::UpdateChat(const char *chat_id, const char *id, const char * GCEVENT gce = {sizeof(gce)}; gce.pDest = &gcd; gce.ptszText = mir_a2t_cp(message,CP_UTF8); - gce.time = ::time(NULL); + gce.time = timestamp ? timestamp : ::time(NULL); gce.dwFlags = GC_TCHAR; gcd.iType = GC_EVENT_MESSAGE; gce.bIsMe = !strcmp(id,facy.self_.user_id.c_str()); -- cgit v1.2.3