-
Notifications
You must be signed in to change notification settings - Fork 336
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
Fix slack session when channel id is null #802
Fix slack session when channel id is null #802
Conversation
promises.channelMembers = this._client.getAllConversationMembers( | ||
channelId | ||
); | ||
if (channelId != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (channelId != null) { | |
if (channelId) { |
const rawEvent = this._getRawEventFromRequest(body) as any; | ||
|
||
// FIXME: define types for every slack events | ||
getChannelId(rawEvent: any): string | null { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what will this method return if it's app home event?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null
Codecov Report
@@ Coverage Diff @@
## release/1.5 #802 +/- ##
===============================================
+ Coverage 81.08% 83.65% +2.56%
===============================================
Files 108 115 +7
Lines 4747 6068 +1321
Branches 1197 1491 +294
===============================================
+ Hits 3849 5076 +1227
- Misses 862 988 +126
+ Partials 36 4 -32
Continue to review full report at Codecov.
|
issue
When user clicked a button on home tab, session key can't generate correctly.
spec
If the slack event is not related to any channel, then the session key set to the user id.