Skip to content

Commit

Permalink
fixup! implement setting user display name
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonChen666 committed Oct 12, 2023
1 parent c3e8699 commit d40db34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synadm/cli/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def set_display_name(helper, user_id, display_name):
raise SystemExit(1)
if helper.output_format == "human":
new_display_name = modified["displayname"]
if new_display_name == None:
if new_display_name is None:
click.echo(f"Removed display name for {mxid}")
else:
click.echo(f"Set display name for {mxid} to {new_display_name}")
Expand Down

0 comments on commit d40db34

Please sign in to comment.