diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-09-26 16:34:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 16:34:12 +0200 |
commit | 15d64fb201848002a25facc3bbffc9535a704df6 (patch) | |
tree | 558282bb4126eef469525c3cb11ea3238919e6fa /app/command_invite.go | |
parent | 37e00ef916af9a5aeae760a01fa0a0cf8ca93637 (diff) | |
download | chat-15d64fb201848002a25facc3bbffc9535a704df6.tar.gz chat-15d64fb201848002a25facc3bbffc9535a704df6.tar.bz2 chat-15d64fb201848002a25facc3bbffc9535a704df6.zip |
MM-7188: Cleaning push notification on every read, not only on channel switch (#9348)
* MM-7188: Cleaning push notification on every read, not only on channel switch
* Removed unnecesary goroutine
* Fixing tests
* Applying suggestion from PR
Diffstat (limited to 'app/command_invite.go')
-rw-r--r-- | app/command_invite.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/command_invite.go b/app/command_invite.go index e6167dad6..1f6006018 100644 --- a/app/command_invite.go +++ b/app/command_invite.go @@ -135,7 +135,7 @@ func (me *InviteProvider) DoCommand(a *App, args *model.CommandArgs, message str } } - if _, err := a.AddChannelMember(userProfile.Id, channelToJoin, args.Session.UserId, ""); err != nil { + if _, err := a.AddChannelMember(userProfile.Id, channelToJoin, args.Session.UserId, "", !args.Session.IsMobileApp()); err != nil { return &model.CommandResponse{ Text: args.T("api.command_invite.fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, |