Fix merge conflicts

This commit is contained in:
Harrison Healey
2019-10-15 12:10:40 -04:00
parent 84714f5cff
commit 3039081161
2 changed files with 1 additions and 16 deletions

View File

@@ -1001,21 +1001,6 @@ func TestSearchChannelsForUser(t *testing.T) {
})
}
func TestGetNumberOfChannelsOnTeam(t *testing.T) {
th := Setup(t).InitBasic()
defer th.TearDown()
th.App.DeleteChannel(th.BasicChannel, th.BasicUser.Id)
count, err := th.App.GetNumberOfChannelsOnTeam(th.BasicTeam.Id, true)
require.Nil(t, err)
assert.Equal(t, 3, count)
count, err = th.App.GetNumberOfChannelsOnTeam(th.BasicTeam.Id, false)
require.Nil(t, err)
assert.Equal(t, 2, count)
}
func TestMarkChannelAsUnreadFromPost(t *testing.T) {
th := Setup(t).InitBasic()
defer th.TearDown()

View File

@@ -1209,7 +1209,7 @@ func (a *App) countMentionsFromPost(user *model.User, post *model.Post) (int, *m
// A mapping of thread root IDs to whether or not a post in that thread mentions the user
mentionedByThread := make(map[string]bool)
thread, err := a.GetPostThread(post.Id)
thread, err := a.GetPostThread(post.Id, false)
if err != nil {
return 0, err
}