Change Post.IsFollowing to a pointer and set to nil for responses to updates to Posts (#17774)

Этот коммит содержится в:
Joram Wilander
2021-06-14 08:25:44 -04:00
коммит произвёл GitHub
родитель 857c5e562f
Коммит 326eb2242a
5 изменённых файлов: 15 добавлений и 6 удалений

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

@@ -2080,7 +2080,7 @@ func TestCollapsedThreadFetch(t *testing.T) {
require.EqualValues(t, []string{user1.Id}, []string{l.Posts[postRoot.Id].Participants[0].Id})
require.Empty(t, l.Posts[postRoot.Id].Participants[0].Email)
require.NotZero(t, l.Posts[postRoot.Id].LastReplyAt)
require.True(t, l.Posts[postRoot.Id].IsFollowing)
require.True(t, *l.Posts[postRoot.Id].IsFollowing)
// try extended fetch
l, err = th.App.GetPostsForChannelAroundLastUnread(channel.Id, user1.Id, 10, 10, true, true, true)