Merge pull request #738 from mautrix/sumner/bri-1583-telegram-has-disconnected-i-woke-up-to
bridge state: use TRANSIENT_DISCONNECT if connection drops and is expected to come back soon
This commit is contained in:
@@ -240,7 +240,7 @@ class User(DBUser, AbstractUser, BaseUser):
|
||||
)
|
||||
else:
|
||||
await self.push_bridge_state(
|
||||
BridgeStateEvent.UNKNOWN_ERROR, ttl=240, error="tg-not-connected"
|
||||
BridgeStateEvent.TRANSIENT_DISCONNECT, ttl=240, error="tg-not-connected"
|
||||
)
|
||||
|
||||
async def fill_bridge_state(self, state: BridgeState) -> None:
|
||||
|
||||
Reference in New Issue
Block a user