-
Notifications
You must be signed in to change notification settings - Fork 71
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
[GH-199] Added a ephemeral message if the user is using PMI and his/her PMI setting is disable on Zoom. #324
Changes from 10 commits
20fb84d
6fff252
b32765b
dc8c0d8
a4411cf
aef9479
b325fc6
56c0575
8285087
51d0260
7abbc3e
4e45cd1
8d5efc2
b0b4f3b
7bc8155
5d65870
31298da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,16 +13,6 @@ export function startMeeting(channelId, rootId = '', force = false, topic = '') | |
window.open(meetingURL); | ||
} | ||
} catch (error) { | ||
let m = error.message; | ||
if (error.message && error.message[0] === '{') { | ||
const e = JSON.parse(error.message); | ||
|
||
// Error is from Zoom API | ||
if (e && e.message) { | ||
m = '\nZoom error: ' + e.message; | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm this error may have some useful context for why the meeting couldn't start, like something going on with the user's zoom account. I'm thinking this can stay There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mickmister Reverted the changes to display generic error message There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's mainly when we enter the "Error is from Zoom API" block that I'm thinking we should show the provided error. If the others from our server are more cryptic/low-level, then let's only show the error from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mickmister Just to clarify, if we are in the "Error is from Zoom API" block, then we show the error from the API and show a generic error otherwise. Right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @raghavaggarwal2308 Yes that sounds right to me There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mickmister Updated |
||
|
||
const post = { | ||
id: 'zoomPlugin' + Date.now(), | ||
create_at: Date.now(), | ||
|
@@ -35,7 +25,7 @@ export function startMeeting(channelId, rootId = '', force = false, topic = '') | |
root_id: rootId, | ||
parent_id: '', | ||
original_id: '', | ||
message: m, | ||
message: 'Error occurred while starting the Zoom meeting.', | ||
type: 'system_ephemeral', | ||
props: {}, | ||
hashtags: '', | ||
|
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.
Does this call to
http.Error
make this error show in the client? Maybe we want something more user-friendly if so. Wondering about the other calls tohttp.Error
as wellThere 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.
@mickmister Yes, the error is shown to the client. Do you want us to show the user a generic message whenever we get an API error?
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.
It depends how low-level or cryptic these errors are. I trust your judgment on this
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.
@mickmister Updated, displaying a generic error to the user now.