From 476aa34eeec80dc9b1b15b48ef5db84501dcae42 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 31 Oct 2022 20:20:16 +0300 Subject: WhatsApp: history sync processing --- protocols/WhatsApp/src/proto.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'protocols/WhatsApp/src/proto.h') diff --git a/protocols/WhatsApp/src/proto.h b/protocols/WhatsApp/src/proto.h index a11c992768..bddf804014 100644 --- a/protocols/WhatsApp/src/proto.h +++ b/protocols/WhatsApp/src/proto.h @@ -31,6 +31,15 @@ struct WAMSG }; }; +struct WAMediaKeys +{ + WAMediaKeys(const uint8_t *pKey, size_t keyLen, const char *pszMediaType); + + uint8_t iv[16]; + uint8_t cipherKey[32]; + uint8_t macKey[64]; +}; + struct WARequest { WARequest(const CMStringA &_1, WA_PKT_HANDLER _2, void *_3 = nullptr) : @@ -256,6 +265,7 @@ class WhatsAppProto : public PROTO void InitSync(void); void ApplyPatch(const JSONNode &index, const Wa__SyncActionValue *data); void ParsePatch(WACollection *pColl, const Wa__SyncdRecord *rec, bool bSet); + void ProcessHistorySync(const Wa__HistorySync *pSync); void ResyncServer(const OBJLIST &task); void ResyncAll(void); @@ -418,6 +428,7 @@ public: // Options ///////////////////////////////////////////////////////////////////////////// CMOption m_wszNick; // your nick name in presence + CMOption m_wszDeviceName; // how do you see Miranda in mobile phone CMOption m_wszDefaultGroup; // clist group to store contacts CMOption m_bHideGroupchats; // do not open chat windows on creation -- cgit v1.2.3