Navigation Menu

Skip to content

Commit

Permalink
Remove newlines from displayed MUC topics
Browse files Browse the repository at this point in the history
fixes #393
  • Loading branch information
fiaxh committed Sep 11, 2018
1 parent f876114 commit 83bf063
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/src/ui/conversation_titlebar/view.vala
Expand Up @@ -61,7 +61,10 @@ public class ConversationTitlebar : Gtk.HeaderBar {
if (subtitle != null) {
set_subtitle(subtitle);
} else if (conversation.type_ == Conversation.Type.GROUPCHAT) {
string subject = stream_interactor.get_module(MucManager.IDENTITY).get_groupchat_subject(conversation.counterpart, conversation.account);
string? subject = stream_interactor.get_module(MucManager.IDENTITY).get_groupchat_subject(conversation.counterpart, conversation.account);
if (subject != null) {
subject = (new Regex("\\s+")).replace_literal(subject, -1, 0, " ");
}
set_subtitle(subject != "" ? subject : null);
} else {
set_subtitle(null);
Expand Down

0 comments on commit 83bf063

Please sign in to comment.