Fix login info did not persist

This commit is contained in:
Lonami Exo 2022-01-17 11:50:28 +01:00
parent 3f68510393
commit 85a9c13129

View File

@ -320,7 +320,7 @@ async def connect(self: 'TelegramClient') -> None:
return
if self._sender.auth_key.key != dc.auth:
dc = dataclasses.replace(dc, auth=self._sender.auth_key.key)
self._all_dcs[dc.id] = dc = dataclasses.replace(dc, auth=self._sender.auth_key.key)
# Need to send invokeWithLayer for things to work out.
# Make the most out of this opportunity by also refreshing our state.