1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-28 23:16:45 +02:00

implement read receipts

This commit is contained in:
Jfreegman
2014-09-07 02:43:53 -04:00
parent 3c2c1f15ce
commit 5b9bd603ea
10 changed files with 141 additions and 35 deletions

View File

@ -219,6 +219,15 @@ void on_file_data(Tox *m, int32_t friendnumber, uint8_t filenumber, const uint8_
}
}
void on_read_receipt(Tox *m, int32_t friendnumber, uint32_t receipt, void *userdata)
{
int i;
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
if (windows[i].onReadReceipt != NULL)
windows[i].onReadReceipt(&windows[i], m, friendnumber, receipt);
}
}
/* CALLBACKS END */
int add_window(Tox *m, ToxWindow w)