summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-03-13 13:24:43 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-03-13 13:24:43 +0000
commit6c2593659f36866e8c82deea995428c61bb99ec3 (patch)
tree1cf6893367e0ab6ed03df1007feb1c48af47b4cd /plugins/Dropbox/src
parent09328f1364768480ba83b7dc9bd7f9235d8a0767 (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/src')
-rw-r--r--plugins/Dropbox/src/dropbox_events.cpp13
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);