diff options
author | aunsane <aunsane@gmail.com> | 2017-02-25 22:54:15 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-02-25 22:54:15 +0300 |
commit | b38b36d8cc4d5bffd84514c3089f952f9e115e40 (patch) | |
tree | 76a44a8953f1610299906a20cc818c461af08786 /protocols/Tox/src | |
parent | fe9f7606361446d20201092d2ade4ccfbdf5ca36 (diff) |
Tox: attempt to fix #698
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r-- | protocols/Tox/src/tox_messages.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index b1c6ef7d3d..0cc1e768d3 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -181,9 +181,6 @@ void CToxProto::OnTypingChanged(Tox*, uint32_t friendNumber, bool isTyping, void {
CToxProto *proto = (CToxProto*)arg;
- if (MCONTACT hContact = proto->GetContact(friendNumber))
- {
- int typingStatus = (isTyping ? PROTOTYPE_CONTACTTYPING_INFINITE : PROTOTYPE_CONTACTTYPING_OFF);
- CallService(MS_PROTO_CONTACTISTYPING, hContact, (LPARAM)typingStatus);
- }
+ if (MCONTACT hContact = proto->GetContact(friendNumber) && isTyping)
+ CallService(MS_PROTO_CONTACTISTYPING, hContact, (LPARAM)5);
}
\ No newline at end of file |