changeset 1534:49ad8dd210d0

server (restricted_bridge): add `message_send` method
author Goffi <goffi@goffi.org>
date Thu, 22 Jun 2023 16:36:18 +0200
parents 285c49d7aad3
children de09d4d25194
files libervia/web/server/restricted_bridge.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/web/server/restricted_bridge.py	Thu Jun 22 16:36:18 2023 +0200
+++ b/libervia/web/server/restricted_bridge.py	Thu Jun 22 16:36:18 2023 +0200
@@ -85,6 +85,15 @@
         return await self.host.bridge_call(
             "identities_base_get", profile)
 
+    async def message_send(
+        self, to_jid_s, message, subject, mess_type, extra_s,
+        profile
+    ):
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "message_send", to_jid_s, message, subject, mess_type, extra_s, profile
+        )
+
     async def ps_node_delete(self, service_s, node, profile):
         self.no_service_profile(profile)
         return await self.host.bridge_call(