fix(ui): make attachment links clickable
This commit is contained in:
parent
0924be9c65
commit
10de0d0ed6
1 changed files with 3 additions and 1 deletions
|
|
@ -516,7 +516,9 @@ func (ml *messagesList) drawDefaultMessage(builder *tview.LineBuilder, message d
|
|||
for _, a := range message.Attachments {
|
||||
builder.NewLine()
|
||||
if ml.cfg.ShowAttachmentLinks {
|
||||
builder.Write(a.Filename+":\n"+a.URL, attachmentStyle)
|
||||
builder.Write(a.Filename+":", attachmentStyle)
|
||||
builder.NewLine()
|
||||
builder.Write(a.URL, attachmentStyle.Url(a.URL))
|
||||
} else {
|
||||
builder.Write(a.Filename, attachmentStyle)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue