parent
732d3a9814
commit
7e3cedaf3f
|
@ -90,7 +90,7 @@ public class ConversationTitlebarCsd : ConversationTitlebar, Object {
|
||||||
|
|
||||||
public Adw.HeaderBar header_bar = new Adw.HeaderBar();
|
public Adw.HeaderBar header_bar = new Adw.HeaderBar();
|
||||||
private Label title_label = new Label("") { ellipsize=EllipsizeMode.END };
|
private Label title_label = new Label("") { ellipsize=EllipsizeMode.END };
|
||||||
private Label subtitle_label = new Label("") { ellipsize=EllipsizeMode.END, visible=false };
|
private Label subtitle_label = new Label("") { use_markup=true, ellipsize=EllipsizeMode.END, visible=false };
|
||||||
private Revealer back_revealer;
|
private Revealer back_revealer;
|
||||||
|
|
||||||
public ConversationTitlebarCsd() {
|
public ConversationTitlebarCsd() {
|
||||||
|
|
|
@ -177,11 +177,13 @@ public class ConversationViewController : Object {
|
||||||
|
|
||||||
private void update_conversation_topic(string? subtitle = null) {
|
private void update_conversation_topic(string? subtitle = null) {
|
||||||
if (subtitle != null) {
|
if (subtitle != null) {
|
||||||
conversation_topic = Util.summarize_whitespaces_to_space(subtitle);
|
string summarized_topic = Util.summarize_whitespaces_to_space(subtitle);
|
||||||
|
conversation_topic = Util.parse_add_markup(summarized_topic, null, true, true);
|
||||||
} else if (conversation.type_ == Conversation.Type.GROUPCHAT) {
|
} 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) {
|
if (subject != null) {
|
||||||
conversation_topic = Util.summarize_whitespaces_to_space(subject);
|
string summarized_topic = Util.summarize_whitespaces_to_space(subject);
|
||||||
|
conversation_topic = Util.parse_add_markup(summarized_topic, null, true, true);
|
||||||
} else {
|
} else {
|
||||||
conversation_topic = null;
|
conversation_topic = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue