Fix new linting issues
Этот коммит содержится в:
@@ -1800,7 +1800,7 @@ func (a *App) MarkChannelAsUnreadFromPost(postID string, userID string) (*model.
|
|||||||
}
|
}
|
||||||
|
|
||||||
channelUnread, updateErr := a.Srv.Store.Channel().UpdateLastViewedAtPost(post, userID, unreadMentions)
|
channelUnread, updateErr := a.Srv.Store.Channel().UpdateLastViewedAtPost(post, userID, unreadMentions)
|
||||||
if err != nil {
|
if updateErr != nil {
|
||||||
return channelUnread, updateErr
|
return channelUnread, updateErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1276,6 +1276,7 @@ func TestCountMentionsFromPost(t *testing.T) {
|
|||||||
ChannelId: channel.Id,
|
ChannelId: channel.Id,
|
||||||
Message: "test",
|
Message: "test",
|
||||||
}, channel, false)
|
}, channel, false)
|
||||||
|
require.Nil(t, err)
|
||||||
|
|
||||||
count, err := th.App.countMentionsFromPost(user2, post1)
|
count, err := th.App.countMentionsFromPost(user2, post1)
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user