diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-26 23:34:30 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-26 23:34:30 +0300 |
commit | ab3d423b1dc514e9db61c170ca14bab49e5280cb (patch) | |
tree | f8c76c7b8cb5ad8804aff7222960126e9180d66c /plugins/Scriver/src | |
parent | 395ecbc7e8f02c0ea659a598e5f9bab8995f3451 (diff) |
major atavism, PROTORECVEVENT, died with its own set of constants
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/globals.cpp | 2 | ||||
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index 23bbc7af31..6ec8c203bd 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -127,7 +127,7 @@ static int ackevent(WPARAM, LPARAM lParam) DBEVENTINFO dbei = {};
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.flags = DBEF_UTF | DBEF_SENT | ((item->flags & PREF_RTL) ? DBEF_RTL : 0);
+ dbei.flags = DBEF_UTF | DBEF_SENT | (item->flags & DBEF_RTL);
dbei.szModule = Proto_GetBaseAccountName(hContact);
dbei.timestamp = time(0);
dbei.cbBlob = (int)mir_strlen(item->sendBuffer) + 1;
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 0ab0d77f11..b75ab78c42 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -298,7 +298,7 @@ void CMsgDialog::onClick_Ok(CCtrlButton *pButton) SendQueue::Item msi = {};
if (pf2.wEffects & PFE_RTLPARA)
- msi.flags |= PREF_RTL;
+ msi.flags |= DBEF_RTL;
msi.sendBuffer = m_message.GetRichTextRtf(true);
msi.sendBufferSize = (int)mir_strlen(msi.sendBuffer);
@@ -306,7 +306,7 @@ void CMsgDialog::onClick_Ok(CCtrlButton *pButton) return;
if (Utils_IsRtl(ptrW(mir_utf8decodeW(msi.sendBuffer))))
- msi.flags |= PREF_RTL;
+ msi.flags |= DBEF_RTL;
// Store messaging history
TCmdList *cmdListNew = tcmdlist_last(cmdList);
|