diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-28 20:07:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-28 20:07:32 +0300 |
commit | 80ca1947771c0a993abd903cabca462d0d0eb484 (patch) | |
tree | 9de79e5390e2a974f5f64f4176acf1ae1ffd02a6 /protocols/WhatsApp/src/iq.cpp | |
parent | 382f44ca43fb631be7ba14adb9f643ef99f4c2d3 (diff) |
WhatsApp: protobuf message printer is with us again
Diffstat (limited to 'protocols/WhatsApp/src/iq.cpp')
-rw-r--r-- | protocols/WhatsApp/src/iq.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/iq.cpp b/protocols/WhatsApp/src/iq.cpp index f2a8fce306..2a038cb61a 100644 --- a/protocols/WhatsApp/src/iq.cpp +++ b/protocols/WhatsApp/src/iq.cpp @@ -271,6 +271,11 @@ void WhatsAppProto::OnNotifyEncrypt(const WANode &node) void WhatsAppProto::OnNotifyPicture(const WANode &node) { + if (auto *pszFrom = node.getAttr("from")) + if (m_szJid != pszFrom) + if (auto *pszUser = FindUser(pszFrom)) + ServerFetchAvatar(pszFrom); + SendAck(node); } |