1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 20:06:45 +02:00

Refactor unread message flagging

This fixes an issue where the interface wasn't able to update
when the unread message flag changed. It also cleans up some
ugly code
This commit is contained in:
jfreegman
2021-11-19 22:54:35 -05:00
parent f3f81111c8
commit 1803da85c1
6 changed files with 85 additions and 31 deletions

View File

@ -96,6 +96,11 @@ void line_info_clear(struct history *hst);
/* puts msg in specified line_info msg buffer */
void line_info_set(ToxWindow *self, uint32_t id, char *msg);
/* Return the line_info object associated with `id`.
* Return NULL if id cannot be found
*/
struct line_info *line_info_get(ToxWindow *self, uint32_t id);
/* resets line_start (moves to end of chat history) */
void line_info_reset_start(ToxWindow *self, struct history *hst);