diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-15 14:52:01 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-15 14:52:01 +0300 |
commit | cb1787afbb67184321f206f13f836b63cd06740a (patch) | |
tree | 0e9f9701642fd1cc9bfb63dfba9eb72dad72d383 /protocols/JabberG | |
parent | a232c39b9e45a77e14326511112b70d3dc405105 (diff) |
PROTO_INTERFACE::SendMsg - unused parameter flags removed
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_omemo.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_proto.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index 6906c24c2b..e54817fe25 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -1348,7 +1348,7 @@ int CJabberProto::JabberGcEventHook(WPARAM, LPARAM lParam) if (gch->ptszText && mir_wstrlen(gch->ptszText) > 0) {
rtrimw(gch->ptszText);
Chat_UnescapeTags(gch->ptszText);
- SendMsg(item->hContact, 0, T2Utf(gch->ptszText));
+ SendMsg(item->hContact, T2Utf(gch->ptszText));
}
break;
diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp index d1f921f9b4..6e0b7a172c 100644 --- a/protocols/JabberG/src/jabber_omemo.cpp +++ b/protocols/JabberG/src/jabber_omemo.cpp @@ -1206,7 +1206,7 @@ void CJabberProto::OmemoPutMessageToOutgoingQueue(MCONTACT hContact, const char* void CJabberProto::OmemoHandleMessageQueue()
{
for (auto &i : m_omemo.outgoing_messages) {
- SendMsg(i.hContact, 0, i.pszSrc);
+ SendMsg(i.hContact, i.pszSrc);
mir_free(i.pszSrc);
}
m_omemo.outgoing_messages.clear();
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index bc038bb3fc..c0b8d4b93c 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -885,7 +885,7 @@ HANDLE CJabberProto::SendFile(MCONTACT hContact, const wchar_t *szDescription, w ////////////////////////////////////////////////////////////////////////////////////////
// JabberSendMessage - sends a message
-int CJabberProto::SendMsg(MCONTACT hContact, int /*flags*/, const char *pszSrc)
+int CJabberProto::SendMsg(MCONTACT hContact, const char *pszSrc)
{
XmlNode m("message");
return SendMsgEx(hContact, pszSrc, m);
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h index 0e568605b6..8791339476 100644 --- a/protocols/JabberG/src/jabber_proto.h +++ b/protocols/JabberG/src/jabber_proto.h @@ -137,7 +137,7 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface int SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList) override;
HANDLE SendFile(MCONTACT hContact, const wchar_t *szDescription, wchar_t **ppszFiles) override;
- int SendMsg(MCONTACT hContact, int flags, const char *msg) override;
+ int SendMsg(MCONTACT hContact, const char *msg) override;
int SendMsgEx(MCONTACT hContact, const char *msg, XmlNode &m);
int SetApparentMode(MCONTACT hContact, int mode) override;
|