diff libervia/backend/plugins/plugin_xep_0167/__init__.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents a7d4007a8fa5
children b4b4ea8c5c87
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0167/__init__.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_xep_0167/__init__.py	Wed Jun 19 18:44:57 2024 +0200
@@ -169,7 +169,7 @@
                     log.warning(f"no media ID found for {media_type}: {media_data}")
                 # FIXME: the 2 values below are linked to XEP-0343, they should be added
                 #   there instead, maybe with some new trigger?
-                for key in ("sctp-port","max-message-size"):
+                for key in ("sctp-port", "max-message-size"):
                     value = transport_data.get(key)
                     if value is not None:
                         metadata[key] = value
@@ -257,18 +257,19 @@
             raise exceptions.DataError("no valid media data found: {call_data}")
 
         call_type = (
-            C.META_SUBTYPE_CALL_VIDEO if "video" in call_data
+            C.META_SUBTYPE_CALL_VIDEO
+            if "video" in call_data
             else C.META_SUBTYPE_CALL_AUDIO
         )
 
         sid = await self._j.initiate(
-                client,
-                peer_jid,
-                contents,
-                call_type=call_type,
-                metadata=metadata,
-                peer_metadata={},
-            )
+            client,
+            peer_jid,
+            contents,
+            call_type=call_type,
+            metadata=metadata,
+            peer_metadata={},
+        )
         return sid
 
     def _call_answer_sdp(self, session_id: str, answer_sdp: str, profile: str) -> None: