Allow copying any type of message. Fixes #276
This commit is contained in:
parent
e46694a33f
commit
c2a3940e41
@ -212,10 +212,7 @@ func (view *RoomView) OnSelect(message *messages.UIMessage) {
|
|||||||
go view.Download(msg.URL, msg.File, path, view.selectReason == SelectOpen)
|
go view.Download(msg.URL, msg.File, path, view.selectReason == SelectOpen)
|
||||||
}
|
}
|
||||||
case SelectCopy:
|
case SelectCopy:
|
||||||
msg, ok := message.Renderer.(*messages.TextMessage)
|
go view.CopyToClipboard(message.Renderer.PlainText(), view.selectContent)
|
||||||
if ok {
|
|
||||||
go view.CopyToClipboard(msg.PlainText(), view.selectContent)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
view.selecting = false
|
view.selecting = false
|
||||||
view.selectContent = ""
|
view.selectContent = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user