Fix another Hyperlink call

This commit is contained in:
Tulir Asokan 2022-11-13 15:34:21 +02:00
parent 886690f98f
commit 0c1fc00f97

View File

@ -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)
}