aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-01 22:39:27 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit91312364d70efaa3a0c6d4e8a15965383df5fcf7 (patch)
tree80c4e3c5c5f0021d7b8adc0fb0c6f48ea40b394f /slack
parent39c0cdc15645b6f82d2feff015c249535a66976d (diff)
downloadwee-slack-91312364d70efaa3a0c6d4e8a15965383df5fcf7.tar.gz
Update message_json dict rather than replacing it
In the message_replied event, the message json doesn't include all properties, so `subscribed` and others were removed when we replaced it.
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_message.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py
index 6294282..06aac3f 100644
--- a/slack/slack_message.py
+++ b/slack/slack_message.py
@@ -252,7 +252,9 @@ class SlackMessage:
self._rendered_message = None
def update_message_json(self, message_json: SlackMessageDict):
- self._message_json = message_json
+ self._message_json.update(
+ message_json # pyright: ignore [reportGeneralTypeIssues]
+ )
self._rendered_prefix = None
self._rendered_message = None