Fix public_portals setting not being respected on portal creation
This commit is contained in:
@@ -337,12 +337,13 @@ class PortalMetadata(BasePortal, ABC):
|
|||||||
if self.peer_type == "channel":
|
if self.peer_type == "channel":
|
||||||
self.megagroup = entity.megagroup
|
self.megagroup = entity.megagroup
|
||||||
|
|
||||||
|
preset = RoomCreatePreset.PRIVATE
|
||||||
if self.peer_type == "channel" and entity.username:
|
if self.peer_type == "channel" and entity.username:
|
||||||
preset = RoomCreatePreset.PUBLIC
|
if self.public_portals:
|
||||||
|
preset = RoomCreatePreset.PUBLIC
|
||||||
self.username = entity.username
|
self.username = entity.username
|
||||||
alias = self.alias_localpart
|
alias = self.alias_localpart
|
||||||
else:
|
else:
|
||||||
preset = RoomCreatePreset.PRIVATE
|
|
||||||
# TODO invite link alias?
|
# TODO invite link alias?
|
||||||
alias = None
|
alias = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user