-
-
Notifications
You must be signed in to change notification settings - Fork 392
bridges: Check if bot is subscribed to relevant stream. #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
LGTM; @showell |
This seems like a straightforward change. @orientor Can you fix the merge conflicts here? |
Check whether the zulip bot is subscribed to the stream meant for sending messages before logging in to Matrix.
…reams. Check whether both the bots are subscribed to their respective streams designated for sending messages before starting the bridge. Fixes zulip#568.
@showell rebased. |
@@ -9,6 +9,16 @@ import interrealm_bridge_config | |||
|
|||
from typing import Any, Callable, Dict | |||
|
|||
def check_subscription_or_die(zulip_client, stream): | |||
# type: (zulip.Client, str) -> None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The annotation needs to be changed to Python 3 version. Also applied to the other check_subscription_or_die
.
Heads up @orientor, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
Checks if the bots are subscribed to their revelant streams during startup of various bridges.
Fixes #568 .