Skip to content

Commit

Permalink
Fixed: Small namechange
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Brinkmann committed Jul 5, 2020
1 parent 307e742 commit 6dde046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// GetRandomUser returns a random user that is found in the given channel and that is not a bot
// This function is limited to 1000 users per channel
func (p *Plugin) GetRandomUser(channelID string, userIdToIgnore string) (*model.User, *model.AppError) {
func (p *Plugin) GetRandomUser(channelID string, userIDToIgnore string) (*model.User, *model.AppError) {
//get a random user that is not a bot
users, _ := p.API.GetUsersInChannel(channelID, "username", 0, 1000)
rand.Shuffle(len(users), func(i, j int) {
Expand All @@ -24,7 +24,7 @@ func (p *Plugin) GetRandomUser(channelID string, userIdToIgnore string) (*model.
if user.IsBot {
continue
}
if user.Id == userIdToIgnore {
if user.Id == userIDToIgnore {
continue
}
status, err := p.API.GetUserStatus(user.Id)
Expand Down

0 comments on commit 6dde046

Please sign in to comment.