From 9b2b164108cc516ee4a8f49539c3beef22006a6d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 5 May 2020 19:37:35 +0300 Subject: Update mautrix-go --- matrix/matrix.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'matrix') diff --git a/matrix/matrix.go b/matrix/matrix.go index abbd9c6..a4501f3 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -569,10 +569,6 @@ func (c *Container) HandleEncrypted(source EventSource, mxEvent *event.Event) { c.HandleMessage(source, evt) } -type Relatable interface { - GetRelatesTo() *event.RelatesTo -} - // HandleMessage is the event handler for the m.room.message timeline event. func (c *Container) HandleMessage(source EventSource, mxEvent *event.Event) { room := c.GetOrCreateRoom(mxEvent.RoomID) @@ -583,7 +579,7 @@ func (c *Container) HandleMessage(source EventSource, mxEvent *event.Event) { return } - relatable, ok := mxEvent.Content.Parsed.(Relatable) + relatable, ok := mxEvent.Content.Parsed.(event.Relatable) if ok { rel := relatable.GetRelatesTo() if editID := rel.GetReplaceID(); len(editID) > 0 { -- cgit v1.2.3