Only fetch users when necessary
This commit is contained in:
parent
3fd26f6e03
commit
d9c81ec68c
1 changed files with 1 additions and 1 deletions
2
mmcli.py
2
mmcli.py
|
@ -181,8 +181,8 @@ def cat(mm_api: mattermost.MMApi, cmdline_args):
|
|||
# ]
|
||||
team, channel = resolve_team_channel(mm_api, cmdline_args.channel)
|
||||
|
||||
users = list(mm_api.get_users())
|
||||
if not cmdline_args.ids:
|
||||
users = list(mm_api.get_users())
|
||||
def attribute(key_value):
|
||||
key, value = key_value
|
||||
if key == "channel_id":
|
||||
|
|
Loading…
Reference in a new issue