mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
refactor: Make acting_user a mandatory kwarg for do_change_default_sending_stream.
This commit is contained in:
@@ -4114,7 +4114,7 @@ def do_change_plan_type(
|
||||
|
||||
|
||||
def do_change_default_sending_stream(
|
||||
user_profile: UserProfile, stream: Optional[Stream], acting_user: Optional[UserProfile] = None
|
||||
user_profile: UserProfile, stream: Optional[Stream], *, acting_user: Optional[UserProfile]
|
||||
) -> None:
|
||||
old_value = user_profile.default_sending_stream_id
|
||||
user_profile.default_sending_stream = stream
|
||||
|
||||
Reference in New Issue
Block a user