From 0c1fc00f97c3b0ecb27e811e69f49be1887fa6eb Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 13 Nov 2022 15:34:21 +0200 Subject: [PATCH] Fix another Hyperlink call --- ui/messages/filemessage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/messages/filemessage.go b/ui/messages/filemessage.go index f4bc3a4..da5f50e 100644 --- a/ui/messages/filemessage.go +++ b/ui/messages/filemessage.go @@ -149,7 +149,7 @@ func (msg *FileMessage) CalculateBuffer(prefs config.UserPreferences, width int, url := msg.matrix.GetDownloadURL(msg.URL) var urlTString tstring.TString if prefs.EnableInlineURLs() { - urlTString = tstring.NewStyleTString(url, tcell.StyleDefault.Hyperlink(url, msg.eventID.String())) + urlTString = tstring.NewStyleTString(url, tcell.StyleDefault.Url(url).UrlId(msg.eventID.String())) } else { urlTString = tstring.NewTString(url) }