1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Moved status display when receiveing delayed delivery

This commit is contained in:
James Booth 2013-10-06 19:16:20 +01:00
parent 47c96ed4e7
commit 3e7c6e2951

View File

@ -297,16 +297,17 @@ ui_incoming_msg(const char * const from, const char * const message,
_win_show_history(window->win, num, from); _win_show_history(window->win, num, from);
} }
// show users status first, when receiving message via delayed delivery
if ((tv_stamp != NULL) && (win_created)) {
PContact pcontact = roster_get_contact(from);
if (pcontact != NULL) {
window->show_contact(window, pcontact);
}
}
if (tv_stamp == NULL) { if (tv_stamp == NULL) {
window->print_time(window, '-'); window->print_time(window, '-');
} else { } else {
// show users status first, when receiving message via delayed delivery
if (win_created) {
PContact pcontact = roster_get_contact(from);
if (pcontact != NULL) {
window->show_contact(window, pcontact);
}
}
GDateTime *time = g_date_time_new_from_timeval_utc(tv_stamp); GDateTime *time = g_date_time_new_from_timeval_utc(tv_stamp);
gchar *date_fmt = g_date_time_format(time, "%H:%M:%S"); gchar *date_fmt = g_date_time_format(time, "%H:%M:%S");
wattron(window->win, COLOUR_TIME); wattron(window->win, COLOUR_TIME);