mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Moved status display when receiveing delayed delivery
This commit is contained in:
parent
47c96ed4e7
commit
3e7c6e2951
@ -297,16 +297,17 @@ ui_incoming_msg(const char * const from, const char * const message,
|
||||
_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) {
|
||||
window->print_time(window, '-');
|
||||
} 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);
|
||||
gchar *date_fmt = g_date_time_format(time, "%H:%M:%S");
|
||||
wattron(window->win, COLOUR_TIME);
|
||||
|
Loading…
Reference in New Issue
Block a user