summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-26 23:34:30 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-26 23:34:30 +0300
commitab3d423b1dc514e9db61c170ca14bab49e5280cb (patch)
treef8c76c7b8cb5ad8804aff7222960126e9180d66c /plugins/MirOTR/src/utils.cpp
parent395ecbc7e8f02c0ea659a598e5f9bab8995f3451 (diff)
major atavism, PROTORECVEVENT, died with its own set of constants
Diffstat (limited to 'plugins/MirOTR/src/utils.cpp')
-rw-r--r--plugins/MirOTR/src/utils.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp
index 76b4d03c96..af6c8eb928 100644
--- a/plugins/MirOTR/src/utils.cpp
+++ b/plugins/MirOTR/src/utils.cpp
@@ -215,11 +215,11 @@ void ShowMessageInline(const MCONTACT hContact, const wchar_t *msg)
mir_snwprintf(buff, L"%s%s", _A2W(LANG_INLINE_PREFIX), msg);
T2Utf utf(buff);
- PROTORECVEVENT pre = { 0 };
- pre.timestamp = time(0);
- pre.szMessage = utf;
- pre.flags = PREF_BYPASS_OTR;
- ProtoChainRecvMsg(hContact, &pre);
+ DB::EventInfo dbei;
+ dbei.timestamp = time(0);
+ dbei.pBlob = utf;
+ dbei.flags = PREF_BYPASS_OTR;
+ ProtoChainRecvMsg(hContact, dbei);
}
void ShowMessageInlineUtf(const MCONTACT hContact, const char *msg)
@@ -227,11 +227,11 @@ void ShowMessageInlineUtf(const MCONTACT hContact, const char *msg)
char buff[1024];
mir_snprintf(buff, "%s%s", LANG_INLINE_PREFIX, msg);
- PROTORECVEVENT pre = { 0 };
- pre.timestamp = time(0);
- pre.szMessage = buff;
- pre.flags = PREF_BYPASS_OTR;
- ProtoChainRecvMsg(hContact, &pre);
+ DB::EventInfo dbei;
+ dbei.timestamp = time(0);
+ dbei.pBlob = buff;
+ dbei.flags = PREF_BYPASS_OTR;
+ ProtoChainRecvMsg(hContact, dbei);
}
void ShowMessageUtf(const MCONTACT hContact, const char *msg)