Этот коммит содержится в:
Harrison Healey
2019-11-19 10:05:04 -05:00
родитель de913e7537
Коммит 608a137d2b
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@@ -1800,7 +1800,7 @@ func (a *App) MarkChannelAsUnreadFromPost(postID string, userID string) (*model.
}
channelUnread, updateErr := a.Srv.Store.Channel().UpdateLastViewedAtPost(post, userID, unreadMentions)
if err != nil {
if updateErr != nil {
return channelUnread, updateErr
}

Просмотреть файл

@@ -1276,6 +1276,7 @@ func TestCountMentionsFromPost(t *testing.T) {
ChannelId: channel.Id,
Message: "test",
}, channel, false)
require.Nil(t, err)
count, err := th.App.countMentionsFromPost(user2, post1)