aboutsummaryrefslogtreecommitdiff
path: root/ui/messages
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-05-05 18:39:28 +0300
committerTulir Asokan <tulir@maunium.net>2020-05-05 18:39:28 +0300
commit22681875f32fa97f65c9a52e2ee666932706ce95 (patch)
treec5e817a817142c47d40db32285382291aba48347 /ui/messages
parent788d932bec16f25a37bb0bbec03a0eaf4bcefffd (diff)
Update mautrix-go and give crypto module access to state store
Diffstat (limited to 'ui/messages')
-rw-r--r--ui/messages/filemessage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/messages/filemessage.go b/ui/messages/filemessage.go
index d2455ab..3d5e554 100644
--- a/ui/messages/filemessage.go
+++ b/ui/messages/filemessage.go
@@ -66,9 +66,9 @@ func NewFileMessage(matrix ifc.MatrixContainer, evt *muksevt.Event, displayname
return newUIMessage(evt, displayname, &FileMessage{
Type: content.MsgType,
Body: content.Body,
- URL: content.URL,
+ URL: content.URL.ParseOrIgnore(),
File: file,
- Thumbnail: content.GetInfo().ThumbnailURL,
+ Thumbnail: content.GetInfo().ThumbnailURL.ParseOrIgnore(),
ThumbnailFile: thumbnailFile,
matrix: matrix,
})