diff options
author | George Hazan <ghazan@miranda.im> | 2022-12-08 19:43:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-12-08 19:43:11 +0300 |
commit | bc47c9bd4f83f19501b49404eea6a17326b5d4cb (patch) | |
tree | 85b2370b988fec7f7225b53be4585151c3abbd5b /protocols/WhatsApp/src/appsync.cpp | |
parent | 9589c7adf93691f60c613f944ae60ff9bd692b91 (diff) |
fixes #3252 (WhatsApp: при первом выходе в сеть групчаты прилетают как "Неизвестный контакт")
Diffstat (limited to 'protocols/WhatsApp/src/appsync.cpp')
-rw-r--r-- | protocols/WhatsApp/src/appsync.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/appsync.cpp b/protocols/WhatsApp/src/appsync.cpp index 4209160b79..42e911a3b7 100644 --- a/protocols/WhatsApp/src/appsync.cpp +++ b/protocols/WhatsApp/src/appsync.cpp @@ -284,6 +284,9 @@ void WhatsAppProto::ProcessHistorySync(const Wa__HistorySync *pSync) ProtoChainRecvMsg(pUser->hContact, &pre); if (pUser->bIsGroupChat) { + if (pChat->name) + setUString(pUser->hContact, "Nick", pChat->name); + GCEVENT gce = {m_szModuleName, 0, GC_EVENT_MESSAGE}; gce.dwFlags = GCEF_UTF8; gce.pszID.a = pUser->szId; @@ -296,6 +299,9 @@ void WhatsAppProto::ProcessHistorySync(const Wa__HistorySync *pSync) } } } + + if (pSync->synctype == WA__HISTORY_SYNC__HISTORY_SYNC_TYPE__INITIAL_BOOTSTRAP) + GC_RefreshMetadata(); break; case WA__HISTORY_SYNC__HISTORY_SYNC_TYPE__PUSH_NAME: |