Fix another Hyperlink call
This commit is contained in:
parent
886690f98f
commit
0c1fc00f97
@ -149,7 +149,7 @@ func (msg *FileMessage) CalculateBuffer(prefs config.UserPreferences, width int,
|
|||||||
url := msg.matrix.GetDownloadURL(msg.URL)
|
url := msg.matrix.GetDownloadURL(msg.URL)
|
||||||
var urlTString tstring.TString
|
var urlTString tstring.TString
|
||||||
if prefs.EnableInlineURLs() {
|
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 {
|
} else {
|
||||||
urlTString = tstring.NewTString(url)
|
urlTString = tstring.NewTString(url)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user