From 15d64fb201848002a25facc3bbffc9535a704df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 26 Sep 2018 16:34:12 +0200 Subject: 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 --- app/plugin_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/plugin_api.go') diff --git a/app/plugin_api.go b/app/plugin_api.go index 20a27316f..4fc8126f1 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -251,7 +251,7 @@ func (api *PluginAPI) AddChannelMember(channelId, userId string) (*model.Channel return nil, err } - return api.app.AddChannelMember(userId, channel, userRequestorId, postRootId) + return api.app.AddChannelMember(userId, channel, userRequestorId, postRootId, false) } func (api *PluginAPI) GetChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) { -- cgit v1.2.3-1-g7c22