Unverified Commit 05c056f4 authored by Harrison Healey's avatar Harrison Healey Committed by GitHub

MM-19482 Stop rendering New Messages line differently for manually unread channels (#968)

parent 77766b87
......@@ -45,8 +45,7 @@ export function makeFilterPostsAndAddSeparators() {
getCurrentUser,
shouldShowJoinLeaveMessages,
isTimezoneEnabled,
(state, {channelId}) => state.entities.channels.manuallyUnread[channelId],
(posts, lastViewedAt, indicateNewMessages, selectedPostId, currentUser, showJoinLeave, timeZoneEnabled, isManuallyUnread) => {
(posts, lastViewedAt, indicateNewMessages, selectedPostId, currentUser, showJoinLeave, timeZoneEnabled) => {
if (posts.length === 0 || !currentUser) {
return [];
}
......@@ -96,7 +95,7 @@ export function makeFilterPostsAndAddSeparators() {
if (
lastViewedAt &&
post.create_at > lastViewedAt &&
(post.user_id !== currentUser.id || isManuallyUnread) &&
post.user_id !== currentUser.id &&
!addedNewMessagesIndicator &&
indicateNewMessages
) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment