diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-31 20:20:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-31 20:20:16 +0300 |
commit | 476aa34eeec80dc9b1b15b48ef5db84501dcae42 (patch) | |
tree | 84dbc5fd64e397c48666c476f60c10572728578f /protocols/WhatsApp/src/proto.h | |
parent | 61cb1c1445b8ebfef08c864f0062baa68390dd1a (diff) |
WhatsApp: history sync processing
Diffstat (limited to 'protocols/WhatsApp/src/proto.h')
-rw-r--r-- | protocols/WhatsApp/src/proto.h | 11 |
1 files changed, 11 insertions, 0 deletions
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<WhatsAppProto> 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<WACollection> &task); void ResyncAll(void); @@ -418,6 +428,7 @@ public: // Options ///////////////////////////////////////////////////////////////////////////// CMOption<wchar_t*> m_wszNick; // your nick name in presence + CMOption<wchar_t*> m_wszDeviceName; // how do you see Miranda in mobile phone CMOption<wchar_t*> m_wszDefaultGroup; // clist group to store contacts CMOption<bool> m_bHideGroupchats; // do not open chat windows on creation |