aboutsummaryrefslogtreecommitdiff
path: root/matrix/event
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/event')
-rw-r--r--matrix/event/event.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/matrix/event/event.go b/matrix/event/event.go
index 143d35d..8506c9c 100644
--- a/matrix/event/event.go
+++ b/matrix/event/event.go
@@ -25,6 +25,14 @@ type Event struct {
Gomuks GomuksContent `json:"-"`
}
+func (evt *Event) SomewhatDangerousCopy() *Event {
+ base := *evt.Event
+ return &Event{
+ Event: &base,
+ Gomuks: evt.Gomuks,
+ }
+}
+
func Wrap(event *mautrix.Event) *Event {
return &Event{Event: event}
}