summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_polling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r--protocols/Steam/src/steam_polling.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp
index 975c008e77..d353ffaccb 100644
--- a/protocols/Steam/src/steam_polling.cpp
+++ b/protocols/Steam/src/steam_polling.cpp
@@ -32,16 +32,17 @@ void CSteamProto::ParsePollData(JSONNode *data)
ptrT text(json_as_string(node));
T2Utf szMessage(text);
+ PROTORECVEVENT recv = { 0 };
+ recv.timestamp = timestamp;
+ recv.szMessage = szMessage;
if (_tcsstr(type, _T("my_")) == NULL)
{
- PROTORECVEVENT recv = { 0 };
- recv.timestamp = timestamp;
- recv.szMessage = szMessage;
ProtoChainRecvMsg(hContact, &recv);
}
else
{
- AddDBEvent(hContact, EVENTTYPE_MESSAGE, timestamp, DBEF_UTF | DBEF_SENT, (int)mir_strlen(szMessage) + 1, (PBYTE)(char*)szMessage);
+ recv.flags = PREF_SENT;
+ Proto_RecvMessage(hContact, &recv);
}
}
else if (!lstrcmpi(type, _T("typing")))