diff options
Diffstat (limited to 'matrix')
-rw-r--r-- | matrix/matrix.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go index 82ba006..7918aeb 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -1024,9 +1024,12 @@ func (c *Container) GetEvent(room *rooms.Room, eventID id.EventID) (*muksevt.Eve if err != nil { return nil, err } - evt = muksevt.Wrap(mxEvent) + err = mxEvent.Content.ParseRaw(mxEvent.Type) + if err != nil { + return nil, err + } debug.Printf("Loaded event %s from server", eventID) - return evt, nil + return muksevt.Wrap(mxEvent), nil } // GetOrCreateRoom gets the room instance stored in the session. |