diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index d0f460e9..e1c2763c 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -659,7 +659,7 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing) return 0; } -int m_get_istyping(Messenger *m, int32_t friendnumber) +uint8_t m_get_istyping(Messenger *m, int32_t friendnumber) { if (friend_not_valid(m, friendnumber)) return -1; diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index 110e3ac5..a50d4d79 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h @@ -432,7 +432,7 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing); * returns 0 if friend is not typing. * returns 1 if friend is typing. */ -int m_get_istyping(Messenger *m, int32_t friendnumber); +uint8_t m_get_istyping(Messenger *m, int32_t friendnumber); /* Sets whether we send read receipts for friendnumber. * This function is not lazy, and it will fail if yesno is not (0 or 1). diff --git a/toxcore/tox.c b/toxcore/tox.c index 0c76182e..16180b30 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -316,7 +316,7 @@ int tox_set_user_is_typing(Tox *tox, int32_t friendnumber, uint8_t is_typing) * returns 0 if friend is not typing. * returns 1 if friend is typing. */ -int tox_get_is_typing(Tox *tox, int32_t friendnumber) +uint8_t tox_get_is_typing(Tox *tox, int32_t friendnumber) { Messenger *m = tox; return m_get_istyping(m, friendnumber); diff --git a/toxcore/tox.h b/toxcore/tox.h index d40d7469..8f8621b3 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h @@ -282,7 +282,7 @@ int tox_set_user_is_typing(Tox *tox, int32_t friendnumber, uint8_t is_typing); * returns 0 if friend is not typing. * returns 1 if friend is typing. */ -int tox_get_is_typing(Tox *tox, int32_t friendnumber); +uint8_t tox_get_is_typing(Tox *tox, int32_t friendnumber); /* Sets whether we send read receipts for friendnumber. * This function is not lazy, and it will fail if yesno is not (0 or 1).