aboutsummaryrefslogtreecommitdiff
path: root/matrix
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-05-05 19:37:35 +0300
committerTulir Asokan <tulir@maunium.net>2020-05-05 19:37:35 +0300
commit9b2b164108cc516ee4a8f49539c3beef22006a6d (patch)
tree52cc9d19fc8379235a8f9a89839d93ebbb4ed761 /matrix
parent9d4fffb259f0809cd9eae1d77e3e80f4335a4b39 (diff)
Update mautrix-go
Diffstat (limited to 'matrix')
-rw-r--r--matrix/matrix.go6
1 files changed, 1 insertions, 5 deletions
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 {