forked from MirrorHub/mautrix-whatsapp
fix: ensure joined
This commit is contained in:
parent
5c80732064
commit
fae313fa32
1 changed files with 5 additions and 0 deletions
|
@ -1747,6 +1747,11 @@ func (portal *Portal) CreateMatrixRoom(user *User, groupInfo *types.GroupInfo, i
|
||||||
portal.log.Errorln("Failed to join created portal with bridge bot for e2be:", err)
|
portal.log.Errorln("Failed to join created portal with bridge bot for e2be:", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rec := portal.bridge.GetPuppetByJID(portal.Key.Receiver)
|
||||||
|
err = rec.CustomIntent().EnsureJoined(portal.MXID)
|
||||||
|
if err != nil {
|
||||||
|
portal.log.Errorln("Failed to join created portal with puppet:", err)
|
||||||
|
}
|
||||||
|
|
||||||
user.UpdateDirectChats(map[id.UserID][]id.RoomID{puppet.MXID: {portal.MXID}})
|
user.UpdateDirectChats(map[id.UserID][]id.RoomID{puppet.MXID: {portal.MXID}})
|
||||||
} else if portal.IsParent {
|
} else if portal.IsParent {
|
||||||
|
|
Loading…
Reference in a new issue