diff libervia/web/server/restricted_bridge.py @ 1546:7f3f5ae7d65a

browser (jid_search): implement a mechanism to get JIDs from search terms
author Goffi <goffi@goffi.org>
date Thu, 06 Jul 2023 12:11:17 +0200
parents bc856e74f74d
children e47c24204449
line wrap: on
line diff
--- a/libervia/web/server/restricted_bridge.py	Thu Jul 06 12:10:25 2023 +0200
+++ b/libervia/web/server/restricted_bridge.py	Thu Jul 06 12:11:17 2023 +0200
@@ -206,3 +206,11 @@
         return await self.host.bridge_call(
             "url_preview_get", url, options_s, profile
         )
+
+    async def jid_search(
+        self, search_term: str, options_s: str, profile: str
+    ) -> str:
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "jid_search", search_term, options_s, profile
+        )