From d5415b99a63d6c47d752e4be3a5f2caf1cf0741d Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 11 Dec 2020 12:08:36 +0100 Subject: Fix color for win_print_outgoing() Discovered by @aba-hollerer. Mistake was introduced in b6b7dd5ad497a71e250b8b3cef0bb987314b141d probably due to a wrong copy/paste. First wasn't reproducible because I had `/receipts request on` and thus win_print_outgoing_receipts() is used which has the correct THEME_TEXT_ME. Fixes https://github.com/profanity-im/profanity/issues/1441 --- src/ui/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/window.c b/src/ui/window.c index 559676af..01625f6f 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1214,7 +1214,7 @@ win_print_outgoing(ProfWin* window, const char* show_char, const char* const id, _win_correct(window, message, id, replace_id, myjid); } else { //TODO my jid - _win_printf(window, show_char, 0, timestamp, 0, THEME_TEXT_THEM, "me", myjid, id, "%s", message); + _win_printf(window, show_char, 0, timestamp, 0, THEME_TEXT_ME, "me", myjid, id, "%s", message); } inp_nonblocking(TRUE); -- cgit 1.4.1-2-gfad0 From 63843342c3f03f15ad08f6189ea073ec56e76256 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 11 Dec 2020 13:47:40 +0100 Subject: Remove old TODO It was added in f7fe87dd4e7e14112fbcb0ae8794d90ffee64f2f when I rewrote window functions to include more infos (not just char* but whole jid struct I think). The same todo was added to win_print_outgoing_muc() but removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19. This TODO should have been removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19 since there we added the myjid parameter. --- src/ui/window.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ui/window.c b/src/ui/window.c index 01625f6f..8785edd9 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1213,7 +1213,6 @@ win_print_outgoing(ProfWin* window, const char* show_char, const char* const id, if (replace_id) { _win_correct(window, message, id, replace_id, myjid); } else { - //TODO my jid _win_printf(window, show_char, 0, timestamp, 0, THEME_TEXT_ME, "me", myjid, id, "%s", message); } -- cgit 1.4.1-2-gfad0