aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/imagemessage.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-18 14:20:57 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-18 14:46:03 +0300
commitbb36996194492db6cc17f9cfd91769f31df7003b (patch)
treea10b83a338615e5386a05d38913b3f97165b1792 /ui/messages/imagemessage.go
parent3750d5007fe31b1a4d706357f43774d08944213e (diff)
Add support for sending Markdown messages
Diffstat (limited to 'ui/messages/imagemessage.go')
-rw-r--r--ui/messages/imagemessage.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/ui/messages/imagemessage.go b/ui/messages/imagemessage.go
index 7478876..cd8c2fe 100644
--- a/ui/messages/imagemessage.go
+++ b/ui/messages/imagemessage.go
@@ -85,18 +85,6 @@ func (msg *ImageMessage) Path() string {
return msg.gmx.Matrix().GetCachePath(msg.Homeserver, msg.FileID)
}
-// CopyFrom replaces the content of this message object with the content of the given object.
-func (msg *ImageMessage) CopyFrom(from ifc.MessageMeta) {
- msg.BaseMessage.CopyFrom(from)
-
- fromImgMsg, ok := from.(*ImageMessage)
- if ok {
- msg.data = fromImgMsg.data
- }
-
- msg.RecalculateBuffer()
-}
-
// CalculateBuffer generates the internal buffer for this message that consists
// of the text of this message split into lines at most as wide as the width
// parameter.