diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-19 21:24:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-19 21:24:11 +0000 |
commit | 925c04de5ee370511fe1c09d42ba8c4589c7d2ee (patch) | |
tree | b48de2c2498b01f5195d5016f6e47f91141d71ab /protocols/Steam/src/steam_polling.cpp | |
parent | a313a57561b0a4ab336f031f4ccd433d659bb7fb (diff) |
Steam: Support for receiving "user left conversation" events (like jabber has)
Miranda is NOT sending this event, maybe in future if there is exists such request from mobile/web steam.
git-svn-id: http://svn.miranda-ng.org/main/trunk@15903 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 43ceece247..8086db033e 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -143,9 +143,23 @@ void CSteamProto::ParsePollData(JSONNode *data) default: continue; } } - /*else if (!lstrcmpi(type, _T("leftconversation"))) + else if (!lstrcmpi(type, _T("leftconversation"))) { - }*/ + // chatstates gone event + MCONTACT hContact = FindContact(steamId); + if (hContact) + { + BYTE bEventType = STEAM_DB_EVENT_CHATSTATES_GONE; + DBEVENTINFO dbei = { sizeof(dbei) }; + dbei.pBlob = &bEventType; + dbei.cbBlob = 1; + dbei.eventType = EVENTTYPE_STEAM_CHATSTATES; + dbei.flags = DBEF_READ; + dbei.timestamp = time(NULL); + dbei.szModule = m_szModuleName; + db_event_add(hContact, &dbei); + } + } else { continue; |