aboutsummaryrefslogtreecommitdiff
path: root/matrix/muksevt
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-04-19 15:00:49 +0300
committerTulir Asokan <tulir@maunium.net>2020-04-19 15:01:16 +0300
commit5ee6aa72dbb2cc4b437624f7e2d5821234c2fc7c (patch)
tree5da8e858f598be02b8a4ca547dcbc21e9b5c1743 /matrix/muksevt
parentac1b0540a2f5979346277271ec733d19a0b25228 (diff)
Update mautrix-go content stuff
Diffstat (limited to 'matrix/muksevt')
-rw-r--r--matrix/muksevt/event.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/matrix/muksevt/event.go b/matrix/muksevt/event.go
index 9f7a3ce..d1bca13 100644
--- a/matrix/muksevt/event.go
+++ b/matrix/muksevt/event.go
@@ -27,8 +27,10 @@ type Event struct {
func (evt *Event) SomewhatDangerousCopy() *Event {
base := *evt.Event
+ content := *base.Content.Parsed.(*event.MessageEventContent)
+ evt.Content.Parsed = &content
return &Event{
- Event: &base,
+ Event: &base,
Gomuks: evt.Gomuks,
}
}