Add option to not set room meta in encrypted rooms

This commit is contained in:
Tulir Asokan
2023-04-14 14:12:01 +03:00
parent 4ff6a62dab
commit 815ce40989
5 changed files with 49 additions and 25 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ class Puppet(DBPuppet, BasePuppet):
await self.save()
async def update_portals_meta(self) -> None:
if not p.Portal.private_chat_portal_meta and not self.mx.e2ee:
if p.Portal.private_chat_portal_meta != "always" and not self.mx.e2ee:
return
async for portal in p.Portal.find_private_chats_with(self.tgid):
await portal.update_info_from_puppet(self)