From d78c9d23d5ad5e1341e46094d7f9e29686acaa7e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Apr 2018 11:18:52 +0200 Subject: code cleaning --- plugins/TabSRMM/src/sendlater.cpp | 3 +-- plugins/TabSRMM/src/sendqueue.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp index e98a46c087..bd7b744e35 100644 --- a/plugins/TabSRMM/src/sendlater.cpp +++ b/plugins/TabSRMM/src/sendlater.cpp @@ -438,11 +438,10 @@ HANDLE CSendLater::processAck(const ACKDATA *ack) if (!p->fSuccess) { DBEVENTINFO dbei = {}; dbei.eventType = EVENTTYPE_MESSAGE; - dbei.flags = DBEF_SENT; + dbei.flags = DBEF_SENT | DBEF_UTF; dbei.szModule = GetContactProto((p->hContact)); dbei.timestamp = time(nullptr); dbei.cbBlob = (int)mir_strlen(p->sendBuffer) + 1; - dbei.flags |= DBEF_UTF; dbei.pBlob = (PBYTE)(p->sendBuffer); db_event_add(p->hContact, &dbei); diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp index 850ddee811..5b2fbd4979 100644 --- a/plugins/TabSRMM/src/sendqueue.cpp +++ b/plugins/TabSRMM/src/sendqueue.cpp @@ -460,7 +460,7 @@ int SendQueue::ackMessage(CTabBaseDlg *dat, WPARAM wParam, LPARAM lParam) DBEVENTINFO dbei = {}; dbei.eventType = EVENTTYPE_MESSAGE; - dbei.flags = DBEF_SENT; + dbei.flags = DBEF_SENT | DBEF_UTF; dbei.szModule = GetContactProto(job.hContact); dbei.timestamp = time(nullptr); dbei.cbBlob = (int)mir_strlen(job.szSendBuffer) + 1; @@ -474,7 +474,6 @@ int SendQueue::ackMessage(CTabBaseDlg *dat, WPARAM wParam, LPARAM lParam) if (job.dwFlags & PREF_RTL) dbei.flags |= DBEF_RTL; - dbei.flags |= DBEF_UTF; dbei.pBlob = (PBYTE)job.szSendBuffer; MessageWindowEvent evt = { job.iSendId, job.hContact, &dbei }; -- cgit v1.2.3