mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Moved ui_current_page_off to ui_incoming_msg
This commit is contained in:
parent
b303bdd057
commit
3d768527c1
@ -225,7 +225,6 @@ handle_incoming_message(char *from, char *message, gboolean priv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ui_incoming_msg(from, newmessage, NULL, priv);
|
ui_incoming_msg(from, newmessage, NULL, priv);
|
||||||
ui_current_page_off();
|
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_CHLOG) && !priv) {
|
if (prefs_get_boolean(PREF_CHLOG) && !priv) {
|
||||||
Jid *from_jid = jid_create(from);
|
Jid *from_jid = jid_create(from);
|
||||||
@ -246,7 +245,6 @@ handle_incoming_message(char *from, char *message, gboolean priv)
|
|||||||
otr_free_message(newmessage);
|
otr_free_message(newmessage);
|
||||||
#else
|
#else
|
||||||
ui_incoming_msg(from, message, NULL, priv);
|
ui_incoming_msg(from, message, NULL, priv);
|
||||||
ui_current_page_off();
|
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_CHLOG) && !priv) {
|
if (prefs_get_boolean(PREF_CHLOG) && !priv) {
|
||||||
Jid *from_jid = jid_create(from);
|
Jid *from_jid = jid_create(from);
|
||||||
@ -264,7 +262,6 @@ handle_delayed_message(char *from, char *message, GTimeVal tv_stamp,
|
|||||||
gboolean priv)
|
gboolean priv)
|
||||||
{
|
{
|
||||||
ui_incoming_msg(from, message, &tv_stamp, priv);
|
ui_incoming_msg(from, message, &tv_stamp, priv);
|
||||||
ui_current_page_off();
|
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_CHLOG) && !priv) {
|
if (prefs_get_boolean(PREF_CHLOG) && !priv) {
|
||||||
Jid *from_jid = jid_create(from);
|
Jid *from_jid = jid_create(from);
|
||||||
|
@ -297,6 +297,8 @@ _ui_incoming_msg(const char * const from, const char * const message,
|
|||||||
notify_message(display_from, ui_index);
|
notify_message(display_from, ui_index);
|
||||||
|
|
||||||
free(display_from);
|
free(display_from);
|
||||||
|
|
||||||
|
ui_current_page_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user