mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Also check date on outgoing/incoming messages
So the first thing that happens will trigger it.
This commit is contained in:
parent
0e88f996f1
commit
64964d0415
@ -357,10 +357,13 @@ chatwin_outgoing_msg(ProfChatWin* chatwin, const char* const message, char* id,
|
|||||||
enc_char = strdup("-");
|
enc_char = strdup("-");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ProfWin* window = (ProfWin*)chatwin;
|
||||||
|
win_changed_date_since_last_msg(window);
|
||||||
|
|
||||||
if (request_receipt && id) {
|
if (request_receipt && id) {
|
||||||
win_print_outgoing_with_receipt((ProfWin*)chatwin, enc_char, "me", message, id, replace_id);
|
win_print_outgoing_with_receipt(window, enc_char, "me", message, id, replace_id);
|
||||||
} else {
|
} else {
|
||||||
win_print_outgoing((ProfWin*)chatwin, enc_char, id, replace_id, message);
|
win_print_outgoing(window, enc_char, id, replace_id, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(enc_char);
|
free(enc_char);
|
||||||
@ -387,6 +390,8 @@ chatwin_outgoing_carbon(ProfChatWin* chatwin, ProfMessage* message)
|
|||||||
|
|
||||||
ProfWin* window = (ProfWin*)chatwin;
|
ProfWin* window = (ProfWin*)chatwin;
|
||||||
|
|
||||||
|
win_changed_date_since_last_msg(window);
|
||||||
|
|
||||||
win_print_outgoing(window, enc_char, message->id, message->replace_id, message->plain);
|
win_print_outgoing(window, enc_char, message->id, message->replace_id, message->plain);
|
||||||
int num = wins_get_num(window);
|
int num = wins_get_num(window);
|
||||||
status_bar_active(num, WIN_CHAT, chatwin->barejid);
|
status_bar_active(num, WIN_CHAT, chatwin->barejid);
|
||||||
|
@ -501,7 +501,8 @@ mucwin_outgoing_msg(ProfMucWin* mucwin, const char* const message, const char* c
|
|||||||
assert(mucwin != NULL);
|
assert(mucwin != NULL);
|
||||||
|
|
||||||
ProfWin* window = (ProfWin*)mucwin;
|
ProfWin* window = (ProfWin*)mucwin;
|
||||||
char* mynick = muc_nick(mucwin->roomjid);
|
|
||||||
|
win_changed_date_since_last_msg(window);
|
||||||
|
|
||||||
// displayed message char
|
// displayed message char
|
||||||
char* ch;
|
char* ch;
|
||||||
@ -519,6 +520,7 @@ mucwin_outgoing_msg(ProfMucWin* mucwin, const char* const message, const char* c
|
|||||||
ch = strdup("-");
|
ch = strdup("-");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char* mynick = muc_nick(mucwin->roomjid);
|
||||||
win_print_outgoing_muc_msg(window, ch, mynick, id, replace_id, message);
|
win_print_outgoing_muc_msg(window, ch, mynick, id, replace_id, message);
|
||||||
free(ch);
|
free(ch);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user