diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-09-04 15:14:03 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-09-04 15:14:03 +0000 |
commit | a5d6a03cac47b1e669a4cbd02341586d1c2cd838 (patch) | |
tree | 46887928f1e9cd1537a9ac982e22fc09e3087ed7 /plugins/Dropbox | |
parent | f15b32c87d9a7ce7d049b0f36c4096c654a36d35 (diff) |
Dropbox: fix incoming event in private chat
git-svn-id: http://svn.miranda-ng.org/main/trunk@15185 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox')
-rw-r--r-- | plugins/Dropbox/src/dropbox_utils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp index 252f2ad607..edde1243b6 100644 --- a/plugins/Dropbox/src/dropbox_utils.cpp +++ b/plugins/Dropbox/src/dropbox_utils.cpp @@ -75,7 +75,11 @@ void CDropbox::SendToContact(MCONTACT hContact, const char* data) return;
}
- CallContactService(hContact, PSS_MESSAGE, 0, (LPARAM)data);
+ if (CallContactService(hContact, PSS_MESSAGE, 0, (LPARAM)data) != ACKRESULT_FAILED)
+ {
+ char *message = mir_utf8encode(data);
+ AddEventToDb(hContact, EVENTTYPE_MESSAGE, DBEF_UTF | DBEF_SENT, mir_strlen(message), (PBYTE)message);
+ }
}
void CDropbox::PasteToInputArea(MCONTACT hContact, const char* data)
|