Fixes Statusbar tabs and Cleanup

- Fixes statusbar tabs.
Bug: Statusbar used nickname if it was set in roster,
irrelevant to /statusbar chat setting.
Expected behaviour would be using this setting set as "user" to show nickname,
and to show jid with "jid" setting.
Other solution is to give a user control over it with another settings.
- _status_bar_draw_maintext cleaned up, no changes to behaviour
This commit is contained in:
John Hernandez
2023-04-04 02:14:52 +02:00
parent 0740d692dc
commit 7d290b04d5
2 changed files with 39 additions and 15 deletions

View File

@@ -328,7 +328,7 @@ win_get_title(ProfWin* window)
if (name == NULL) {
return strdup(chatwin->barejid);
}
if(show_titlebar_jid){
if (show_titlebar_jid) {
return g_strdup_printf("%s <%s>", name, chatwin->barejid);
}
return g_strdup_printf("%s", name);