Add missing await in qr_login

This commit is contained in:
Lonami Exo 2022-05-16 18:56:24 +02:00
parent 898eb5b82f
commit c16fb0dae6

View File

@ -113,7 +113,7 @@ class QRLogin:
if isinstance(resp, types.auth.LoginTokenSuccess): if isinstance(resp, types.auth.LoginTokenSuccess):
user = resp.authorization.user user = resp.authorization.user
self._client._on_login(user) await self._client._on_login(user)
return user return user
raise TypeError('Login token response was unexpected: {}'.format(resp)) raise TypeError('Login token response was unexpected: {}'.format(resp))