Remove initial_query leftovers

This commit is contained in:
Lonami Exo 2017-09-17 16:20:04 +02:00
parent b14a7d9e68
commit 2f0f6d4591

View File

@ -158,8 +158,7 @@ class TelegramBareClient:
# This is fine, probably layer migration # This is fine, probably layer migration
self._logger.debug('Found invalid item, probably migrating', e) self._logger.debug('Found invalid item, probably migrating', e)
self.disconnect() self.disconnect()
return self.connect(exported_auth=exported_auth, return self.connect(exported_auth=exported_auth)
initial_query=initial_query)
except (RPCError, ConnectionError) as error: except (RPCError, ConnectionError) as error:
# Probably errors from the previous session, ignore them # Probably errors from the previous session, ignore them
@ -167,7 +166,7 @@ class TelegramBareClient:
self._logger.debug( self._logger.debug(
'Could not stabilise initial connection: {}'.format(error) 'Could not stabilise initial connection: {}'.format(error)
) )
return None if initial_query else False return False
def _init_connection(self, query=None): def _init_connection(self, query=None):
result = self(InvokeWithLayerRequest(LAYER, InitConnectionRequest( result = self(InvokeWithLayerRequest(LAYER, InitConnectionRequest(