-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature/button reaction change #44
Feature/button reaction change #44
Conversation
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.
See comment - need to support existing messages that don't have buttons yet.
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.
Couple more fixes needed. See comments
let errorContent = e.message; | ||
if (e instanceof NotificationPermissionError) { | ||
return ErrorUtils.sendToDefaultChannel(e.message, request); | ||
} else if (e instanceof ValidationError) { |
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.
Validation and Authorization errors are now failing silently. Need to add back the error messages to the user.
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.
No, check line 234, 235
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.
Huh, I could swear it was failing with no messages for me. Now it working. OK, good
src/app/requests/RefreshRequest.ts
Outdated
}) { | ||
if (args.commandContext) { | ||
if (args.commandContext.subcommands[0] !== Activities.apply) { | ||
throw new Error('ApplyRequest attempted created for non Apply activity.'); |
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.
Refresh, not Apply
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.
Fixed
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.
Couldn't reproduce the silent error :)
let errorContent = e.message; | ||
if (e instanceof NotificationPermissionError) { | ||
return ErrorUtils.sendToDefaultChannel(e.message, request); | ||
} else if (e instanceof ValidationError) { |
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.
Huh, I could swear it was failing with no messages for me. Now it working. OK, good
No description provided.