-
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
Fix issue of settings command working for non-connected users #384
Conversation
if _, authErr := p.authenticateAndFetchZoomUser(user); authErr != nil { | ||
// the user state will be needed later while connecting the user to Zoom via OAuth | ||
if appErr := p.storeOAuthUserState(user.Id, args.ChannelId, false); appErr != nil { | ||
p.API.LogWarn("failed to store user state") | ||
} | ||
return authErr.Message, authErr.Err | ||
} | ||
|
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's the message that's shown here?
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 User is shown a link to connect the account if it is not connected. It is the same flow as when the user tries to start meeting while not being connected
mattermost-plugin-zoom/server/command.go
Line 128 in ae9b924
func (p *Plugin) runStartCommand(args *model.CommandArgs, user *model.User, topic string) (string, 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.
The above PR has been tested for the following scenarios:
- Checked the zoom settings command for non-connected users
- Checked the zoom settings command for connected users
The PR was working fine for both the conditions, LGTM. Approved
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.
LGTM 👍
Summary
Ticket Link
Fixes #346
What to test?
/zoom settings
command should not work for non-connected users.Checklist
make test
Ran test cases and ensured they are passingmake check-style
Ran style check and ensured both webapp and server pass the checks