serokell / tzbot

Timezone bot for Slack
Mozilla Public License 2.0
7 stars 2 forks source link

[#107] Correctly parse `channel_join` events #113

Closed dcastro closed 1 year ago

dcastro commented 1 year ago

Description

Problem: The parser fails to parse events of type message and subtype channel_join, and the logs are flooded with errors.

This seems to happen because the parser expects every event of type message to have a blocks field, and that's not always true.

Solution: Make the blocks field optional.

Related issue(s)

Fixed #107

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)

✓ Release Checklist