summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_messages.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-02-27 23:38:10 +0300
committeraunsane <aunsane@gmail.com>2017-02-27 23:38:10 +0300
commit0d5699dd134818a9f064033862c5268166b5a816 (patch)
tree51484fbe57d67d814ab618ba5825257c0b351422 /protocols/Tox/src/tox_messages.cpp
parentb922ab20f55561daa472eb211ee50030fcfd0e67 (diff)
Tox: revert previous chages related with #698
Diffstat (limited to 'protocols/Tox/src/tox_messages.cpp')
-rw-r--r--protocols/Tox/src/tox_messages.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp
index 0cc1e768d3..b1c6ef7d3d 100644
--- a/protocols/Tox/src/tox_messages.cpp
+++ b/protocols/Tox/src/tox_messages.cpp
@@ -181,6 +181,9 @@ void CToxProto::OnTypingChanged(Tox*, uint32_t friendNumber, bool isTyping, void
{
CToxProto *proto = (CToxProto*)arg;
- if (MCONTACT hContact = proto->GetContact(friendNumber) && isTyping)
- CallService(MS_PROTO_CONTACTISTYPING, hContact, (LPARAM)5);
+ if (MCONTACT hContact = proto->GetContact(friendNumber))
+ {
+ int typingStatus = (isTyping ? PROTOTYPE_CONTACTTYPING_INFINITE : PROTOTYPE_CONTACTTYPING_OFF);
+ CallService(MS_PROTO_CONTACTISTYPING, hContact, (LPARAM)typingStatus);
+ }
} \ No newline at end of file