1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 21:46:46 +02:00

implemented typing status

This commit is contained in:
Jfreegman
2014-02-23 04:28:33 -05:00
parent 6269eafeaa
commit 2b707f1d80
5 changed files with 54 additions and 1 deletions

View File

@ -37,6 +37,16 @@ void on_connectionchange(Tox *m, int friendnumber, uint8_t status, void *userdat
}
}
void on_typing_change(Tox *m, int friendnumber, int is_typing, void *userdata)
{
int i;
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
if (windows[i].onTypingChange != NULL)
windows[i].onTypingChange(&windows[i], m, friendnumber, is_typing);
}
}
void on_message(Tox *m, int friendnumber, uint8_t *string, uint16_t length, void *userdata)
{
int i;