diff --git a/sat/plugins/plugin_xep_0384.py b/sat/plugins/plugin_xep_0384.py index 88f4e865..43a506a2 100644 --- a/sat/plugins/plugin_xep_0384.py +++ b/sat/plugins/plugin_xep_0384.py @@ -1622,7 +1622,7 @@ class OMEMO: else: self.__text_commands.registerTextCommands(self) - async def profileConnected( # pylint: disable=invalid-name + def profileConnected( # pylint: disable=invalid-name self, client: SatXMPPClient ) -> None: @@ -1630,9 +1630,9 @@ class OMEMO: @param client: The client. """ - await self.get_session_manager( + defer.ensureDeferred(self.get_session_manager( cast(str, client.profile) - ) + )) async def cmd_omemo_reset( self,