Support for GV1 -> GV2 migration

This commit is contained in:
Scott Nonnenberg 2020-11-20 09:30:45 -08:00 committed by Josh Perez
parent a0baa3e03f
commit 2c69f2c367
32 changed files with 2626 additions and 341 deletions

View file

@ -38,9 +38,9 @@ export type PropsData = {
isMe?: boolean;
muteExpiresAt?: number;
lastUpdated: number;
lastUpdated?: number;
unreadCount?: number;
markedUnread: boolean;
markedUnread?: boolean;
isSelected: boolean;
acceptedMessageRequest?: boolean;
@ -100,7 +100,7 @@ export class ConversationListItem extends React.PureComponent<Props> {
isUnread(): boolean {
const { markedUnread, unreadCount } = this.props;
return (isNumber(unreadCount) && unreadCount > 0) || markedUnread;
return Boolean((isNumber(unreadCount) && unreadCount > 0) || markedUnread);
}
public renderUnread(): JSX.Element | null {