forked from MirrorHub/mautrix-whatsapp
fix: invite own puppet to private portals
This commit is contained in:
parent
5c5633548f
commit
5c80732064
1 changed files with 4 additions and 0 deletions
|
@ -1637,6 +1637,10 @@ func (portal *Portal) CreateMatrixRoom(user *User, groupInfo *types.GroupInfo, i
|
||||||
invite = append(invite, portal.bridge.Bot.UserID)
|
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() {
|
if !portal.AvatarURL.IsEmpty() && portal.shouldSetDMRoomMetadata() {
|
||||||
initialState = append(initialState, &event.Event{
|
initialState = append(initialState, &event.Event{
|
||||||
Type: event.StateRoomAvatar,
|
Type: event.StateRoomAvatar,
|
||||||
|
|
Loading…
Reference in a new issue