diff options
Diffstat (limited to 'protocols/Tox/src/tox_messages.cpp')
-rw-r--r-- | protocols/Tox/src/tox_messages.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index 39d37a47dc..9926068014 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -44,16 +44,16 @@ int __cdecl CToxProto::SendMsg(MCONTACT hContact, int flags, const char* msg) return 0;
}
- WaitForSingleObject(hToxEvent, INFINITE);
-
int result = 0;
- if (strncmp(msg, "/me ", 4) != 0)
- {
- result = tox_send_message(tox, number, (uint8_t*)msg, (uint16_t)strlen(msg));
- }
- else
{
- result = tox_send_action(tox, number, (uint8_t*)&msg[4], (uint16_t)strlen(msg) - 4);
+ if (strncmp(msg, "/me ", 4) != 0)
+ {
+ result = tox_send_message(tox, number, (uint8_t*)msg, (uint16_t)strlen(msg));
+ }
+ else
+ {
+ result = tox_send_action(tox, number, (uint8_t*)&msg[4], (uint16_t)strlen(msg) - 4);
+ }
}
if (result == 0)
@@ -122,8 +122,6 @@ int __cdecl CToxProto::UserIsTyping(MCONTACT hContact, int type) uint32_t number = tox_get_friend_number(tox, clientId.data());
if (number >= 0)
{
- WaitForSingleObject(hToxEvent, INFINITE);
-
tox_set_user_is_typing(tox, number, type);
return 0;
}
|