Bold unread channels in jump to channel (#1879)

This commit is contained in:
Elias Nahum 2018-07-04 10:40:56 -04:00 committed by GitHub
parent 939040c3cc
commit 5d579cdfcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ class FilteredList extends Component {
channelId={channel.id}
channel={channel}
isSearchResult={true}
isUnread={false}
isUnread={channel.isUnread}
mentions={0}
onSelectChannel={this.onSelectChannel}
/>
@ -173,8 +173,11 @@ class FilteredList extends Component {
buildUnreadChannelsForSearch = (props, term) => {
const {unreadChannels} = props.channels;
return this.filterChannels(unreadChannels, term);
}
return this.filterChannels(unreadChannels, term).map((item) => {
item.isUnread = true;
return item;
});
};
buildCurrentDMSForSearch = (props, term) => {
const {channels, teammateNameDisplay, profiles, statuses, pastDirectMessages, groupChannelMemberDetails} = props;