Fix legacy EDU handling

This commit is contained in:
Tulir Asokan 2021-12-09 14:17:13 +02:00
parent c7aa4ff338
commit 3851fdcded
2 changed files with 3 additions and 5 deletions

View file

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

View file

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