Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid getting killed by a bug in Slack. #30

Merged
merged 1 commit into from
May 4, 2019
Merged

Conversation

poptix
Copy link
Contributor

@poptix poptix commented May 2, 2019

When using shared channels it is possible to receive a user_change event for a
user that is on a different team.

Additionally, there is currently a bug that causes that event to include the
shared channel ID, even if you aren't in it, and even if it's a private channel.

That means conversations.info will return an negative response and we die().

Rather than doing that, warn about it and include the channel ID.

Slack engineers have been notified about this bug but indicated it could be
some time before it is resolved.

When using shared channels it is possible to receive a user_change event for a
user that is on a different team.

Additionally, there is currently a bug that causes that event to include the
shared channel ID, even if you aren't in it, and even if it's a private channel.

That means conversations.info will return an negative response and we die().

Rather than doing that, warn about it and include the channel ID.

Slack engineers have been notified about this bug but indicated it could be
some time before it is resolved.
Copy link
Owner

@duck8823 duck8823 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@duck8823 duck8823 merged commit 060d8bc into duck8823:master May 4, 2019
duck8823 added a commit that referenced this pull request May 4, 2019
Changelog diff is:

diff --git a/Changes b/Changes
index b0f1c49..090167c 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,10 @@ Revision history for Perl extension Slack-RTM-Bot

 {{$NEXT}}

+1.12 2019-05-04T01:44:52Z
+
+   - #30 Avoid getting killed by a bug in Slack.
+
 1.11 2019-04-27T00:39:51Z

    - #29 Slack changed the limit maximum
duck8823 added a commit that referenced this pull request Jul 5, 2020
Changelog diff is:

diff --git a/Changes b/Changes
index 090167c..6ee1321 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,10 @@ Revision history for Perl extension Slack-RTM-Bot
 
 {{$NEXT}}
 
+1.13 2020-07-05T15:03:42Z
+
+  - #35 Use conversations.list
+
 1.12 2019-05-04T01:44:52Z
 
    - #30 Avoid getting killed by a bug in Slack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants