summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_messages.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-24 18:53:28 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-24 18:53:28 +0000
commit910486f051234fb8e24426152af98ab90319aa16 (patch)
treec5f17894825d255b62417e47f9eb9fe90d918efd /protocols/Tox/src/tox_messages.cpp
parente35c999beb51bde76da243d0564db55360b41aac (diff)
Tox: remove custom db event adding
git-svn-id: http://svn.miranda-ng.org/main/trunk@15606 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_messages.cpp')
-rw-r--r--protocols/Tox/src/tox_messages.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp
index 6212ab91a4..0ce57c1a35 100644
--- a/protocols/Tox/src/tox_messages.cpp
+++ b/protocols/Tox/src/tox_messages.cpp
@@ -22,7 +22,6 @@ void CToxProto::OnFriendMessage(Tox*, uint32_t friendNumber, TOX_MESSAGE_TYPE ty
rawMessage[length] = 0;
PROTORECVEVENT recv = { 0 };
- recv.flags = 0;
recv.timestamp = time(NULL);
recv.szMessage = rawMessage;
recv.lParam = type == TOX_MESSAGE_TYPE_NORMAL ? EVENTTYPE_MESSAGE : DB_EVENT_ACTION;
@@ -31,24 +30,6 @@ void CToxProto::OnFriendMessage(Tox*, uint32_t friendNumber, TOX_MESSAGE_TYPE ty
CallService(MS_PROTO_CONTACTISTYPING, hContact, (LPARAM)PROTOTYPE_CONTACTTYPING_OFF);
}
-// writing message/even into db
-int CToxProto::OnReceiveMessage(MCONTACT hContact, PROTORECVEVENT *pre)
-{
- //return Proto_RecvMessage(hContact, pre);
- if (pre->szMessage == NULL)
- return NULL;
-
- DBEVENTINFO dbei = { sizeof(dbei) };
- dbei.szModule = GetContactProto(hContact);
- dbei.timestamp = pre->timestamp;
- dbei.flags = DBEF_UTF;
- dbei.eventType = pre->lParam;
- dbei.cbBlob = (DWORD)mir_strlen(pre->szMessage) + 1;
- dbei.pBlob = (PBYTE)pre->szMessage;
-
- return (INT_PTR)db_event_add(hContact, &dbei);
-}
-
/* MESSAGE SENDING */
// outcoming message flow