diff options
Diffstat (limited to 'protocols/WhatsApp/src/appsync.cpp')
-rw-r--r-- | protocols/WhatsApp/src/appsync.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/WhatsApp/src/appsync.cpp b/protocols/WhatsApp/src/appsync.cpp index 6eb435db02..62ca86b979 100644 --- a/protocols/WhatsApp/src/appsync.cpp +++ b/protocols/WhatsApp/src/appsync.cpp @@ -274,16 +274,16 @@ void WhatsAppProto::ProcessHistorySync(const Wa__HistorySync *pSync) if (!szMessageText.IsEmpty()) {
auto *key = pMessage->message->key;
- PROTORECVEVENT pre = {};
- pre.timestamp = pMessage->message->messagetimestamp;
- pre.szMessage = szMessageText.GetBuffer();
- pre.szMsgId = key->id;
- pre.flags = PREF_CREATEREAD;
+ DB::EventInfo dbei;
+ dbei.timestamp = pMessage->message->messagetimestamp;
+ dbei.pBlob = szMessageText.GetBuffer();
+ dbei.szId = key->id;
+ dbei.flags = DBEF_READ;
if (key->fromme)
- pre.flags |= PREF_SENT;
+ dbei.flags |= DBEF_SENT;
if (pUser->bIsGroupChat)
- pre.szUserId = key->participant;
- ProtoChainRecvMsg(pUser->hContact, &pre);
+ dbei.szUserId = key->participant;
+ ProtoChainRecvMsg(pUser->hContact, dbei);
}
}
}
|