diff --git a/pyproject.toml b/pyproject.toml index 50af0e4..08f9092 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mab" -version = "0.0.1" +version = "0.0.2" authors = [ { name = "Tyukalov Nikita", email = "nikita@tyukalov.su" } ] diff --git a/src/mab/bot.py b/src/mab/bot.py index 3f06ea5..ea104a1 100644 --- a/src/mab/bot.py +++ b/src/mab/bot.py @@ -263,6 +263,7 @@ class MatrixBot: user_id=username, **session_data ) + self._client.load_store() result = await self._client.whoami() if type(result) is WhoamiError: self._logger.error(f"Can't log in using stored session data: '{result.message}'") @@ -369,7 +370,8 @@ class MatrixBot: sync_task = asyncio.create_task( self._client_cancellable_sync_forever( timeout=self.MATRIX_SYNC_PERIOD, - since=(await self._read_next_batch()) + since=(await self._read_next_batch()), + full_state=True ) ) try: