Skip to content

Commit dbbc63f

Browse files
chrisnojima-zoomchrisnojima
authored andcommitted
lint
1 parent f7ac2e1 commit dbbc63f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

shared/chat/conversation/list-area/index.desktop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as Chat from '@/stores/chat'
33
import * as Kb from '@/common-adapters'
44
import * as Hooks from './hooks'
55
import * as React from 'react'
6-
import * as T from '@/constants/types'
6+
import type * as T from '@/constants/types'
77
import type {LegendListRef} from '@/common-adapters'
88
import {LegendList} from '@legendapp/list/react'
99
import Separator from '../messages/separator'

shared/chat/conversation/list-area/index.native.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Chat from '@/stores/chat'
2-
import * as T from '@/constants/types'
2+
import type * as T from '@/constants/types'
33
import * as Hooks from './hooks'
44
import * as Kb from '@/common-adapters'
55
import * as React from 'react'

shared/chat/conversation/list-area/list-shared.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export const useConversationListData = () =>
2323
const {editing: editingOrdinal, id: conversationIDKey, messageTypeMap, ordinalIndexMap} = s
2424
const {messageCenterOrdinal: mco, messageOrdinals = emptyOrdinals, loaded} = s
2525
const centeredHighlightOrdinal =
26-
mco?.highlightMode !== 'none' ? (mco.ordinal ?? T.Chat.numberToOrdinal(-1)) : T.Chat.numberToOrdinal(-1)
27-
const centeredOrdinal = mco?.ordinal ?? T.Chat.numberToOrdinal(-1)
26+
mco && mco.highlightMode !== 'none' ? mco.ordinal : T.Chat.numberToOrdinal(-1)
27+
const centeredOrdinal = mco ? mco.ordinal : T.Chat.numberToOrdinal(-1)
2828
const containsLatestMessage = s.isCaughtUp()
2929
return {
3030
centeredHighlightOrdinal,

0 commit comments

Comments
 (0)