From 3851fdcded2a924a51958b1ff031eb069a392a62 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 9 Dec 2021 14:17:13 +0200 Subject: [PATCH] Fix legacy EDU handling --- custompuppet.go | 5 +---- matrix.go | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/custompuppet.go b/custompuppet.go index e41bd45..2284ea9 100644 --- a/custompuppet.go +++ b/custompuppet.go @@ -194,11 +194,8 @@ func (puppet *Puppet) ProcessResponse(resp *mautrix.RespSync, _ string) error { return nil } for roomID, events := range resp.Rooms.Join { - portal := puppet.bridge.GetPortalByMXID(roomID) - if portal == nil || portal.IsBroadcastList() { - continue - } for _, evt := range events.Ephemeral.Events { + evt.RoomID = roomID err := evt.Content.ParseRaw(evt.Type) if err != nil { continue diff --git a/matrix.go b/matrix.go index c33780e..d8a2632 100644 --- a/matrix.go +++ b/matrix.go @@ -22,9 +22,10 @@ import ( "strings" "time" - "go.mau.fi/whatsmeow/types" "maunium.net/go/maulogger/v2" + "go.mau.fi/whatsmeow/types" + "maunium.net/go/mautrix" "maunium.net/go/mautrix/appservice" "maunium.net/go/mautrix/event"