diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-20 12:39:25 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-20 12:39:25 +0000 |
commit | b76c5a1d907f6310d38230cc6aec2caf7dcc34be (patch) | |
tree | a4ff2213a860cefd03fdf8a885d53ef0544a5389 /protocols/Steam/src/steam_messages.cpp | |
parent | 39fcb7e3cfe09177a5ddc6a51b3b2614c1618d7a (diff) |
Steam: Support for sending typing notifications
git-svn-id: http://svn.miranda-ng.org/main/trunk@15912 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_messages.cpp')
-rw-r--r-- | protocols/Steam/src/steam_messages.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_messages.cpp b/protocols/Steam/src/steam_messages.cpp index f55a31366a..c2172bb380 100644 --- a/protocols/Steam/src/steam_messages.cpp +++ b/protocols/Steam/src/steam_messages.cpp @@ -86,3 +86,17 @@ int CSteamProto::OnPreCreateMessage(WPARAM, LPARAM lParam) return 0;
}
+
+int CSteamProto::UserIsTyping(MCONTACT hContact, int type)
+{
+ // NOTE: Steam doesn't support sending "user stopped typing" so we're sending only positive info
+ if (hContact && IsOnline() && type == PROTOTYPE_SELFTYPING_ON)
+ {
+ ptrA token(getStringA("TokenSecret"));
+ ptrA umqid(getStringA("UMQID"));
+ ptrA steamId(getStringA(hContact, "SteamID"));
+ PushRequest(new SendTypingRequest(token, umqid, steamId));
+ }
+
+ return 0;
+}
|