Remove broken catch_up option
This commit is contained in:
@@ -140,10 +140,6 @@ bridge:
|
|||||||
plaintext_highlights: false
|
plaintext_highlights: false
|
||||||
# Whether or not to make portals of publicly joinable channels/supergroups publicly joinable on Matrix.
|
# Whether or not to make portals of publicly joinable channels/supergroups publicly joinable on Matrix.
|
||||||
public_portals: true
|
public_portals: true
|
||||||
# Whether or not to fetch and handle Telegram updates at startup from the time the bridge was down.
|
|
||||||
# Currently only works for private chats and normal groups.
|
|
||||||
# WARNING: This feature seems to be broken in the telegram library.
|
|
||||||
catch_up: false
|
|
||||||
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
||||||
# your own Matrix account as the Matrix puppet for your Telegram account.
|
# your own Matrix account as the Matrix puppet for your Telegram account.
|
||||||
sync_with_custom_puppets: true
|
sync_with_custom_puppets: true
|
||||||
|
|||||||
@@ -117,12 +117,6 @@ class Bot(AbstractUser):
|
|||||||
except (ChannelPrivateError, ChannelInvalidError):
|
except (ChannelPrivateError, ChannelInvalidError):
|
||||||
self.remove_chat(TelegramID(channel_id.channel_id))
|
self.remove_chat(TelegramID(channel_id.channel_id))
|
||||||
|
|
||||||
if config["bridge.catch_up"]:
|
|
||||||
try:
|
|
||||||
await self.client.catch_up()
|
|
||||||
except Exception:
|
|
||||||
self.log.exception("Failed to run catch_up() for bot")
|
|
||||||
|
|
||||||
def register_portal(self, portal: po.Portal) -> None:
|
def register_portal(self, portal: po.Portal) -> None:
|
||||||
self.add_chat(portal.tgid, portal.peer_type)
|
self.add_chat(portal.tgid, portal.peer_type)
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ class Config(BaseBridgeConfig):
|
|||||||
copy("bridge.allow_matrix_login")
|
copy("bridge.allow_matrix_login")
|
||||||
copy("bridge.plaintext_highlights")
|
copy("bridge.plaintext_highlights")
|
||||||
copy("bridge.public_portals")
|
copy("bridge.public_portals")
|
||||||
copy("bridge.catch_up")
|
|
||||||
copy("bridge.sync_with_custom_puppets")
|
copy("bridge.sync_with_custom_puppets")
|
||||||
copy("bridge.telegram_link_preview")
|
copy("bridge.telegram_link_preview")
|
||||||
copy("bridge.inline_images")
|
copy("bridge.inline_images")
|
||||||
|
|||||||
@@ -197,8 +197,6 @@ class User(AbstractUser):
|
|||||||
if not self.is_bot and config["bridge.startup_sync"]:
|
if not self.is_bot and config["bridge.startup_sync"]:
|
||||||
await self.sync_dialogs()
|
await self.sync_dialogs()
|
||||||
await self.sync_contacts()
|
await self.sync_contacts()
|
||||||
if config["bridge.catch_up"]:
|
|
||||||
await self.client.catch_up()
|
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception("Failed to run post-login functions for %s", self.mxid)
|
self.log.exception("Failed to run post-login functions for %s", self.mxid)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user