From c7f9b3e802be96cbce60399b0d5b367f13cc1275 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Fri, 10 Apr 2020 13:37:51 +0200 Subject: Set team in message_json after recording event SlackTeam can't be json serialized, so this broke record_events. I broke this in commit 324890c when I changed from storing the team hash on the message_json to storing the team. You can't currently see which team the message is from, but you couldn't really with the team hash either since the relation between the team and the team hash is not printed anywhere. I will add a better way to see which team the message is from in the next commit. Fixes #761 --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 789e750..57cf55f 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -516,9 +516,9 @@ class EventRouter(object): return w.WEECHAT_RC_OK message_json = json.loads(data.decode('utf-8')) - message_json["wee_slack_metadata_team"] = team if self.recording: self.record_event(message_json, 'type', 'websocket') + message_json["wee_slack_metadata_team"] = team self.receive(message_json) return w.WEECHAT_RC_OK -- cgit