summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_util.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-06 21:19:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-06 21:19:49 +0300
commitecd56d476d8b0e3a8700e3a27a67f4c1e579f176 (patch)
treedda13df333464a9ded69af9038393f75dec6a761 /protocols/JabberG/src/jabber_util.cpp
parent55dbfad33560045e5e14e04c9ad11a38b9bcff09 (diff)
more portable version of previous patch
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r--protocols/JabberG/src/jabber_util.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index 8c6856e41b..f620593fed 100644
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -890,6 +890,8 @@ bool JabberReadXep203delay(const TiXmlElement *node, time_t &msgTime)
return msgTime != 0;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
bool CJabberProto::IsMyOwnJID(const char *szJID)
{
if (m_ThreadInfo == nullptr)
@@ -914,6 +916,19 @@ bool CJabberProto::IsMyOwnJID(const char *szJID)
return mir_strcmp(szFrom, szTo) == 0;
}
+bool CJabberProto::IsSendAck(MCONTACT hContact)
+{
+ if (getBool(hContact, "MsgAck"))
+ return true;
+
+ if (getBool(hContact, "MsgNoAck"))
+ return false;
+
+ return m_bMsgAck;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
void __cdecl CJabberProto::LoadHttpAvatars(void* param)
{
Thread_SetName("Jabber: LoadHttpAvatars");