From 7e3cedaf3fa347bfa688e71b0f69e62725db395d Mon Sep 17 00:00:00 2001 From: eerielili Date: Sat, 13 Jan 2024 13:27:30 +0000 Subject: Enable hyperlinks in topic text to be clicked (#1523) fixes #1042 --- main/src/ui/conversation_view_controller.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main/src/ui/conversation_view_controller.vala') diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala index da94b740..5b768271 100644 --- a/main/src/ui/conversation_view_controller.vala +++ b/main/src/ui/conversation_view_controller.vala @@ -177,11 +177,13 @@ public class ConversationViewController : Object { private void update_conversation_topic(string? 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) { string? subject = stream_interactor.get_module(MucManager.IDENTITY).get_groupchat_subject(conversation.counterpart, conversation.account); 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 { conversation_topic = null; } -- cgit v1.2.3-70-g09d2