diff --git a/mautrix_telegram/bot.py b/mautrix_telegram/bot.py index 7e65048f..dce2573d 100644 --- a/mautrix_telegram/bot.py +++ b/mautrix_telegram/bot.py @@ -273,7 +273,7 @@ async def handle_command_portal(self, portal: po.Portal, reply: ReplyFunc) -> Me if not portal.allow_bridging: return await reply("This bridge doesn't allow bridging this chat.") - await portal.create_matrix_room(self) + # await portal.create_matrix_room(self) if portal.mxid: if portal.username: return await reply( diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index 2ab062db..8273dd5d 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -3373,7 +3373,7 @@ async def _handle_telegram_message( ) -> None: if not self.mxid: self.log.debug("Got telegram message %d, but no room exists, creating...", evt.id) - await self.create_matrix_room(source, invites=[source.mxid], update_if_exists=False) + # await self.create_matrix_room(source, invites=[source.mxid], update_if_exists=False) if not self.mxid: self.log.warning("Room doesn't exist even after creating, dropping %d", evt.id) return @@ -3536,8 +3536,8 @@ async def _mark_disappearing( async def _create_room_on_action( self, source: au.AbstractUser, action: TypeMessageAction ) -> bool: - if source.is_relaybot and self.config["bridge.ignore_unbridged_group_chat"]: - return False + # if source.is_relaybot and self.config["bridge.ignore_unbridged_group_chat"]: + return False create_and_exit = (MessageActionChatCreate, MessageActionChannelCreate) create_and_continue = ( MessageActionChatAddUser,