diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-03-13 13:24:43 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-03-13 13:24:43 +0000 |
commit | 6c2593659f36866e8c82deea995428c61bb99ec3 (patch) | |
tree | 1cf6893367e0ab6ed03df1007feb1c48af47b4cd /plugins/Dropbox | |
parent | 09328f1364768480ba83b7dc9bd7f9235d8a0767 (diff) |
Dropbox: fix for file link sending
git-svn-id: http://svn.miranda-ng.org/main/trunk@8592 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox')
-rw-r--r-- | plugins/Dropbox/src/dropbox_events.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/Dropbox/src/dropbox_events.cpp b/plugins/Dropbox/src/dropbox_events.cpp index a10917c236..d568d42fd8 100644 --- a/plugins/Dropbox/src/dropbox_events.cpp +++ b/plugins/Dropbox/src/dropbox_events.cpp @@ -191,11 +191,14 @@ int CDropbox::OnSendSuccessed(void *obj, WPARAM hContact, LPARAM lParam) {
if (CallContactService(hContact, PSS_MESSAGE, PREF_UTF, (LPARAM)message) != ACKRESULT_FAILED)
{
- PROTORECVEVENT recv = { 0 };
- recv.flags = PREF_CREATEREAD | DBEF_UTF;
- recv.timestamp = time(NULL);
- recv.szMessage = message;
- ProtoChainRecvMsg(hContact, &recv);
+ DBEVENTINFO dbei = { sizeof(dbei) };
+ dbei.flags = DBEF_UTF | DBEF_SENT/* | DBEF_READ*/;
+ dbei.szModule = MODULE;
+ dbei.timestamp = time(NULL);
+ dbei.eventType = EVENTTYPE_MESSAGE;
+ dbei.cbBlob = wcslen(data);
+ dbei.pBlob = (PBYTE)message;
+ db_event_add(hContact, &dbei);
}
else
CallServiceSync(MS_MSG_SENDMESSAGEW, (WPARAM)hContact, (LPARAM)data);
|