mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed window number for notify and room incoming message
This commit is contained in:
parent
c08e85193c
commit
a81d69dc7f
@ -345,7 +345,7 @@ ui_incoming_msg(const char * const from, const char * const message,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ui_index = num + 1;
|
int ui_index = num;
|
||||||
if (ui_index == 10) {
|
if (ui_index == 10) {
|
||||||
ui_index = 0;
|
ui_index = 0;
|
||||||
}
|
}
|
||||||
@ -1226,7 +1226,7 @@ ui_room_message(const char * const room_jid, const char * const nick,
|
|||||||
window->unread++;
|
window->unread++;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ui_index = num + 1;
|
int ui_index = num;
|
||||||
if (ui_index == 10) {
|
if (ui_index == 10) {
|
||||||
ui_index = 0;
|
ui_index = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user