From 810a9d99cba83c7e0c9622671f082dc9e1c7405b Mon Sep 17 00:00:00 2001 From: Midgard Date: Sun, 29 Oct 2023 19:24:05 +0100 Subject: [PATCH] Stop adding from_mmcli in sent messages --- mmcli/mmcli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmcli/mmcli.py b/mmcli/mmcli.py index 44d4ce1..e22047b 100755 --- a/mmcli/mmcli.py +++ b/mmcli/mmcli.py @@ -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)