mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-05-19 20:33:45 +02:00
fix: invite own puppet to private portals
This commit is contained in:
parent
5c5633548f
commit
5c80732064
|
@ -1637,6 +1637,10 @@ func (portal *Portal) CreateMatrixRoom(user *User, groupInfo *types.GroupInfo, i
|
|||
invite = append(invite, portal.bridge.Bot.UserID)
|
||||
}
|
||||
}
|
||||
if portal.IsPrivateChat() {
|
||||
rec := portal.bridge.GetPuppetByJID(portal.Key.Receiver)
|
||||
invite = append(invite, rec.MXID)
|
||||
}
|
||||
if !portal.AvatarURL.IsEmpty() && portal.shouldSetDMRoomMetadata() {
|
||||
initialState = append(initialState, &event.Event{
|
||||
Type: event.StateRoomAvatar,
|
||||
|
|
Loading…
Reference in a new issue