Add support for editing messages

This commit is contained in:
Tulir Asokan
2020-02-19 01:14:02 +02:00
parent b4e27723d7
commit d02abd079f
8 changed files with 108 additions and 12 deletions

View File

@ -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}
}