From 354f3906f9ff15e9ec95b94b23b2bd53dd0b44cf Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 12 Aug 2022 00:11:15 +0200 Subject: [PATCH] Changed autojoin_on_invite default value --- platypush/plugins/matrix/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/matrix/__init__.py b/platypush/plugins/matrix/__init__.py index 28934779a..4a03feba5 100644 --- a/platypush/plugins/matrix/__init__.py +++ b/platypush/plugins/matrix/__init__.py @@ -94,7 +94,7 @@ class MatrixClient(AsyncClient): credentials_file: str, store_path: str | None = None, config: AsyncClientConfig | None = None, - autojoin_on_invite=False, + autojoin_on_invite=True, **kwargs, ): credentials_file = os.path.abspath(os.path.expanduser(credentials_file)) @@ -458,7 +458,7 @@ class MatrixPlugin(RunnablePlugin): access_token: str | None = None, device_name: str | None = 'platypush', device_id: str | None = None, - autojoin_on_invite: bool = False, + autojoin_on_invite: bool = True, **kwargs, ): """ @@ -480,7 +480,7 @@ class MatrixPlugin(RunnablePlugin): :param device_name: The name of this device/connection (default: ``platypush``). :param device_id: Use an existing ``device_id`` for the sessions. :param autojoin_on_invite: Whether the account should automatically join rooms - upon invite. If false (default value), then you may want to implement your own + upon invite. If false, then you may want to implement your own logic in an event hook when a :class:`platypush.message.event.matrix.MatrixRoomInviteEvent` event is received, and call the :meth:`.join` method if required. """