refactor: Make acting_user a mandatory kwarg for do_deactivate_stream.

This commit is contained in:
shanukun
2021-04-02 21:19:36 +05:30
committed by Tim Abbott
parent f442e9fb03
commit c39ffe8811
5 changed files with 8 additions and 8 deletions

View File

@@ -1206,7 +1206,7 @@ def do_deactivate_user(
def do_deactivate_stream(
stream: Stream, log: bool = True, acting_user: Optional[UserProfile] = None
stream: Stream, log: bool = True, *, acting_user: Optional[UserProfile]
) -> None:
# We want to mark all messages in the to-be-deactivated stream as
# read for all users; otherwise they will pollute queries like