Skip to content

Commit

Permalink
Fix per review renaming getChannelName() to getMattermostChannelName()
Browse files Browse the repository at this point in the history
  • Loading branch information
hloeung committed Sep 10, 2023
1 parent 4f7c0e2 commit cc5f11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm-go-irckit/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func searchUsers(u *User, toUser *User, args []string, service string) {
}
}

func getChannelName(u *User, channelID string) string {
func getMattermostChannelName(u *User, channelID string) string {
channelName := u.br.GetChannelName(channelID)
channelMembers := strings.Split(channelName, "__")

Expand Down Expand Up @@ -378,7 +378,7 @@ func scrollback(u *User, toUser *User, args []string, service string) {

if searchPostID != "" && channelID == "" {
channelID = p.ChannelId
search = getChannelName(u, p.ChannelId)
search = getMattermostChannelName(u, p.ChannelId)
if !strings.HasPrefix(search, "#") {
user := u.br.GetUser(search)
search = user.Nick
Expand Down

0 comments on commit cc5f11a

Please # to comment.