Leonidas-from-XIV / slacko

A neat interface for Slack
https://leonidas-from-xiv.github.io/slacko
Other
81 stars 11 forks source link

Parsing issue for channels-history #25

Closed paurkedal closed 6 years ago

paurkedal commented 6 years ago

I hit a Parse failure: Slacko.message_obj.user in channels_history on the following message ("bot_id" and "pretext" anonymised):

{
  "ok":true,
  "latest":"1526552700.0",
  "oldest":"1526552640.0",
  "messages": [
    { "text":"",
      "bot_id":"B00000000",
      "mrkdwn":true,
      "attachments": [
        { "fallback":"Suggested topic: cloud extension",
          "text":"Suggested topic: cloud extension",
          "pretext":"[...]",
          "id":1,
          "color":"8daec2"
        }
      ],
      "type":"message",
      "subtype":"bot_message",
      "ts":"1526552662.000430"
    }
  ],
  "has_more":false,
  "is_limited":true
}

It looks like message_obj.user is not mandatory.

Leonidas-from-XIV commented 6 years ago

@paurkedal Thanks for the report. Can you check out whether #26 solves the issue for you?