mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 10:06:21 +00:00
Fix chat state updating
Previous commits introduced a problem that chat state stopped working, this commit resolves it by updating it on each cycle.
This commit is contained in:
@@ -133,6 +133,7 @@ _main_update(gpointer data)
|
|||||||
session_process_events();
|
session_process_events();
|
||||||
iq_autoping_check();
|
iq_autoping_check();
|
||||||
ui_update();
|
ui_update();
|
||||||
|
chat_state_idle();
|
||||||
#ifdef HAVE_GTK
|
#ifdef HAVE_GTK
|
||||||
tray_update();
|
tray_update();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -176,14 +176,15 @@ _inp_callback(GIOChannel *source, GIOCondition condition, gpointer data)
|
|||||||
{
|
{
|
||||||
rl_callback_read_char();
|
rl_callback_read_char();
|
||||||
|
|
||||||
|
if (rl_line_buffer && rl_line_buffer[0] != '/' && rl_line_buffer[0] != '\0' && rl_line_buffer[0] != '\n') {
|
||||||
|
chat_state_activity();
|
||||||
|
}
|
||||||
|
|
||||||
ui_reset_idle_time();
|
ui_reset_idle_time();
|
||||||
if (!get_password) {
|
if (!get_password) {
|
||||||
// Update the input buffer on screen
|
// Update the input buffer on screen
|
||||||
_inp_write(rl_line_buffer, rl_point);
|
_inp_write(rl_line_buffer, rl_point);
|
||||||
}
|
}
|
||||||
// TODO set idle or activity with a timeout
|
|
||||||
//chat_state_idle();
|
|
||||||
//chat_state_activity();
|
|
||||||
|
|
||||||
if (inp_line) {
|
if (inp_line) {
|
||||||
ProfWin* window = wins_get_current();
|
ProfWin* window = wins_get_current();
|
||||||
|
|||||||
Reference in New Issue
Block a user