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/channel_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/channel_test.go') diff --git a/app/channel_test.go b/app/channel_test.go index ba5f3eb58..4dc8dce37 100644 --- a/app/channel_test.go +++ b/app/channel_test.go @@ -389,7 +389,7 @@ func TestAddChannelMemberNoUserRequestor(t *testing.T) { channel := th.createChannel(th.BasicTeam, model.CHANNEL_OPEN) userRequestorId := "" postRootId := "" - if _, err := th.App.AddChannelMember(user.Id, channel, userRequestorId, postRootId); err != nil { + if _, err := th.App.AddChannelMember(user.Id, channel, userRequestorId, postRootId, false); err != nil { t.Fatal("Failed to add user to channel. Error: " + err.Message) } -- cgit v1.2.3-1-g7c22