Skip to content

Commit d83a85e

Browse files
committed
WIP
1 parent 2982b86 commit d83a85e

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,4 @@ const styles = Kb.Styles.styleSheetCreate(
431431
}) as const
432432
)
433433

434-
const ThreadWrapperWithProfiler = () => (
435-
<PerfProfiler id="MessageList">
436-
<ThreadWrapper />
437-
</PerfProfiler>
438-
)
439-
440-
export default ThreadWrapperWithProfiler
434+
export default ConversationList

shared/chat/conversation/messages/wrapper/wrapper.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import capitalize from 'lodash/capitalize'
1515
import {useEdited} from './edited'
1616
import {useCurrentUserState} from '@/stores/current-user'
1717
import {useTeamsState} from '@/stores/teams'
18-
import {useProfileState} from '@/stores/profile'
1918
import {useTrackerState} from '@/stores/tracker'
19+
import {navToProfile} from '@/constants/router'
2020
import {formatTimeForChat} from '@/util/timestamp'
2121

2222
export type Props = {
@@ -66,12 +66,11 @@ function AuthorSection(p: AuthorProps) {
6666
const {author, botAlias, isAdhocBot, teamID, teamType, teamname, timestamp, showUsername} = p
6767

6868
const authorRoleInTeam = useTeamsState(s => s.teamIDToMembers.get(teamID)?.get(author)?.type)
69-
const showUserProfile = useProfileState(s => s.dispatch.showUserProfile)
7069
const showUser = useTrackerState(s => s.dispatch.showUser)
7170

7271
const onAuthorClick = () => {
7372
if (C.isMobile) {
74-
showUserProfile(showUsername)
73+
navToProfile(showUsername)
7574
} else {
7675
showUser(showUsername, true)
7776
}

0 commit comments

Comments
 (0)