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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user