Skip to content

Commit

Permalink
Allow specifying remote_id in push_bridge_state
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jun 24, 2021
1 parent ae8ce01 commit a616536
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mautrix/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.9.7"
__version__ = "0.9.8"
__author__ = "Tulir Asokan <tulir@maunium.net>"
__all__ = ["api", "appservice", "bridge", "client", "crypto", "errors", "util", "types"]
5 changes: 3 additions & 2 deletions mautrix/bridge/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ async def get_bridge_state(self) -> BridgeState:
raise NotImplementedError()

async def push_bridge_state(self, ok: bool, error: Optional[str] = None,
message: Optional[str] = None, ttl: Optional[int] = None) -> None:
state = BridgeState(ok=ok, error=error, message=message, ttl=ttl)
message: Optional[str] = None, ttl: Optional[int] = None,
remote_id: Optional[str] = None) -> None:
state = BridgeState(ok=ok, error=error, message=message, ttl=ttl, remote_id=remote_id)
await self.fill_bridge_state(state)
if state.should_deduplicate(self._prev_bridge_status):
return
Expand Down

0 comments on commit a616536

Please sign in to comment.