Prechádzať zdrojové kódy

fix: bugfix release v0.0.3, fix invite handling

This update bumps the project version to 0.0.3 and modifies the bot's behavior to handle room invites asynchronously, improving the efficiency of joining rooms on startup. By adopting `await` for `accept_pending_invites`, the bot can now manage invites more responsively, potentially enhancing user experience during high-volume invite periods.

This change reflects our commitment to continuous improvement, addressing scalability and responsiveness as the bot becomes integrated into larger ecosystems or faces more demanding operational contexts.

No issues explicitly referenced, but this enhancement is part of ongoing efforts to refine the bot's functionality and reliability.
Kumi 6 mesiacov pred
rodič
commit
4e1e15e3cc
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      pyproject.toml
  2. 1 1
      src/matrix_reportbot/classes/bot.py

+ 1 - 1
pyproject.toml

@@ -7,7 +7,7 @@ allow-direct-references = true
 
 [project]
 name = "matrix-reportbot"
-version = "0.0.2"
+version = "0.0.3"
 
 authors = [
   { name="Private.coffee Team", email="support@private.coffee" },

+ 1 - 1
src/matrix_reportbot/classes/bot.py

@@ -588,7 +588,7 @@ class ReportBot:
         # Accept pending invites
 
         self.logger.log("Joining rooms...", "debug")
-        self.accept_pending_invites()
+        await self.accept_pending_invites()
 
         # Set custom name