Mercurial > libervia-web
changeset 1581:fe1995d0df09
server (restricted_bridge): add `history_get` and `message_edit`
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 28 Nov 2023 17:53:28 +0100 (12 months ago) |
parents | 08342aca8c1e |
children | f52b89365002 |
files | libervia/web/server/restricted_bridge.py |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/web/server/restricted_bridge.py Tue Nov 28 17:52:09 2023 +0100 +++ b/libervia/web/server/restricted_bridge.py Tue Nov 28 17:53:28 2023 +0100 @@ -83,6 +83,20 @@ return await self.host.bridge_call( "external_disco_get", entity, profile) + async def history_get( + self, + from_jid: str, + to_jid: str, + limit: int, + between: bool, + filters: dict[str, str], + profile: str + ): + self.no_service_profile(profile) + return await self.host.bridge_call( + "history_get", from_jid, to_jid, limit, between, filters, profile + ) + async def ice_candidates_add(self, session_id, media_ice_data_s, profile): self.no_service_profile(profile) return await self.host.bridge_call( @@ -101,6 +115,13 @@ return await self.host.bridge_call( "identities_base_get", profile) + async def message_edit( + self, message_id: str, edit_data_s: str, profile: str + ) -> None: + return await self.host.bridge_call( + "message_edit", message_id, edit_data_s, profile + ) + async def message_reactions_set( self, message_id: str, reactions: list[str], update_type: str, profile: str ) -> None: