aboutsummaryrefslogtreecommitdiff
path: root/matrix/muksevt
diff options
context:
space:
mode:
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,
}
}