From 1338ad89ee45bdb681c531476dca00a377d7d033 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 Dec 2023 17:14:30 +0300 Subject: PROTO_INTERFACE::SendMsg: second parameter became a reply event id --- protocols/Facebook/src/groupchats.cpp | 2 +- protocols/Facebook/src/proto.cpp | 2 +- protocols/Facebook/src/proto.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Facebook') diff --git a/protocols/Facebook/src/groupchats.cpp b/protocols/Facebook/src/groupchats.cpp index 9215983585..3717d65eef 100644 --- a/protocols/Facebook/src/groupchats.cpp +++ b/protocols/Facebook/src/groupchats.cpp @@ -164,7 +164,7 @@ int FacebookProto::GroupchatEventHook(WPARAM, LPARAM lParam) wchar_t *wszText = NEWWSTR_ALLOCA(gch->ptszText); Chat_UnescapeTags(wszText); - int mid = SendMsg(si->hContact, T2Utf(wszText)); + int mid = SendMsg(si->hContact, 0, T2Utf(wszText)); mir_cslock lck(m_csOwnMessages); for (auto &msg : arOwnMessages) diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp index 30f0d7163f..bec6bac475 100644 --- a/protocols/Facebook/src/proto.cpp +++ b/protocols/Facebook/src/proto.cpp @@ -213,7 +213,7 @@ INT_PTR FacebookProto::GetCaps(int type, MCONTACT) ///////////////////////////////////////////////////////////////////////////////////////// -int FacebookProto::SendMsg(MCONTACT hContact, const char *pszSrc) +int FacebookProto::SendMsg(MCONTACT hContact, MEVENT, const char *pszSrc) { if (!m_bOnline) return -1; diff --git a/protocols/Facebook/src/proto.h b/protocols/Facebook/src/proto.h index 660146e56f..e8ea77d658 100644 --- a/protocols/Facebook/src/proto.h +++ b/protocols/Facebook/src/proto.h @@ -528,7 +528,7 @@ public: MCONTACT AddToList(int flags, PROTOSEARCHRESULT *psr) override; INT_PTR GetCaps(int type, MCONTACT hContact) override; - int SendMsg(MCONTACT hContact, const char *pszSrc) override; + int SendMsg(MCONTACT hContact, MEVENT hReplyEvent, const char *pszSrc) override; int SetStatus(int iNewStatus) override; int UserIsTyping(MCONTACT hContact, int type) override; -- cgit v1.2.3