Fix potential issues with ignore_unbridged_group_chat option

This commit is contained in:
Tulir Asokan
2023-12-15 22:27:39 +02:00
parent 3609eb2b70
commit 87909d07ec
3 changed files with 16 additions and 2 deletions
+5 -1
View File
@@ -658,7 +658,11 @@ class AbstractUser(ABC):
await portal.delete_telegram_user(self.tgid, sender=None)
elif chan := getattr(update, "mau_channel", None):
if not portal.mxid:
background_task.create(self._delayed_create_channel(chan))
if (
not self.is_relaybot
or not self.config["bridge.relaybot.ignore_unbridged_group_chat"]
):
background_task.create(self._delayed_create_channel(chan))
else:
self.log.debug("Updating channel info with data fetched by Telethon")
await portal.update_info(self, chan)