Stop adding from_mmcli in sent messages
This commit is contained in:
parent
e1468bfdd0
commit
810a9d99cb
1 changed files with 2 additions and 2 deletions
|
@ -414,11 +414,11 @@ def send(mm_api: mattermost.MMApi, cmdline_args):
|
|||
print(f"Illegal message, missing channel: {line.strip()}", file=sys.stderr)
|
||||
raise ValueError("Illegal message, missing channel")
|
||||
|
||||
sent = mm_api.create_post(channel_id, msg["message"], props={"from_mmcli": "true"}, filepaths=msg.get("attachments", msg.get("attachments")), root_id=msg.get("thread", msg.get("root_id")))
|
||||
sent = mm_api.create_post(channel_id, msg["message"], filepaths=msg.get("attachments", msg.get("attachments")), root_id=msg.get("thread", msg.get("root_id")))
|
||||
print(sent)
|
||||
|
||||
else:
|
||||
sent = mm_api.create_post(channel["id"], cmdline_args.message, props={"from_mmcli": "true"}, filepaths=cmdline_args.attach, root_id=cmdline_args.thread)
|
||||
sent = mm_api.create_post(channel["id"], cmdline_args.message, filepaths=cmdline_args.attach, root_id=cmdline_args.thread)
|
||||
print(sent)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue