mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-04 16:26:46 +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:
@ -1144,9 +1144,12 @@ void *thread_cqueue(void *data)
|
||||
for (size_t i = 2; i < MAX_WINDOWS_NUM; ++i) {
|
||||
ToxWindow *toxwin = get_window_ptr(i);
|
||||
|
||||
if ((toxwin != NULL) && (toxwin->type == WINDOW_TYPE_CHAT)
|
||||
&& (get_friend_connection_status(toxwin->num) != TOX_CONNECTION_NONE)) {
|
||||
cqueue_try_send(toxwin, m);
|
||||
if ((toxwin != NULL) && (toxwin->type == WINDOW_TYPE_CHAT)) {
|
||||
cqueue_check_unread(toxwin);
|
||||
|
||||
if (get_friend_connection_status(toxwin->num) != TOX_CONNECTION_NONE) {
|
||||
cqueue_try_send(toxwin, m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user