MM-35128 CRT: Global Threads item should not be affected by 'mark as unread' in channel (#17505)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Eli Yukelzon
2021-04-27 16:56:06 +03:00
коммит произвёл GitHub
родитель 89281c00b1
Коммит 3d6e69b002
2 изменённых файлов: 30 добавлений и 28 удалений

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

@@ -2289,7 +2289,7 @@ func (s SqlChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID s
}
if updateThreads {
s.Thread().UpdateUnreadsByChannel(userID, threadsToUpdate, unreadDate, true)
s.Thread().UpdateUnreadsByChannel(userID, threadsToUpdate, unreadDate, false)
}
return result, nil
}