mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/portal: don't try to update functional members if portal doesn't exist
This commit is contained in:
parent
0584fd0c0d
commit
00c58efc59
1 changed files with 1 additions and 1 deletions
|
|
@ -2427,7 +2427,7 @@ func (portal *Portal) handleRemoteEvent(ctx context.Context, source *UserLogin,
|
|||
}
|
||||
|
||||
func (portal *Portal) ensureFunctionalMember(ctx context.Context, ghost *Ghost) {
|
||||
if !ghost.IsBot || portal.RoomType != database.RoomTypeDM || portal.OtherUserID == ghost.ID {
|
||||
if !ghost.IsBot || portal.RoomType != database.RoomTypeDM || portal.OtherUserID == ghost.ID || portal.MXID == "" {
|
||||
return
|
||||
}
|
||||
ars, ok := portal.Bridge.Matrix.(MatrixConnectorWithArbitraryRoomState)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue