1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 10:23:02 +01:00

Fix another group peerlist scrolling bug

This commit is contained in:
jfreegman 2022-03-10 22:06:01 -05:00
parent 0edad7b862
commit 22eb6797b1
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -1677,7 +1677,7 @@ static void groupchat_onDraw(ToxWindow *self, Tox *m)
const uint32_t start = chat->side_pos;
pthread_mutex_unlock(&Winthread.lock);
for (uint32_t i = start; i < max_idx && i < maxlines; ++i) {
for (uint32_t i = start; i < max_idx && offset < maxlines; ++i) {
pthread_mutex_lock(&Winthread.lock);
if (!chat->peer_list[i].active) {