···33import {msg} from '@lingui/macro'
44import {useLingui} from '@lingui/react'
5566-import {useAgent} from '#/state/session'
66+import {useSession} from '#/state/session'
77import {TimeElapsed} from '#/view/com/util/TimeElapsed'
88import {atoms as a, useTheme} from '#/alf'
99import {Text} from '#/components/Typography'
···1717 next: TempDmChatDefs.MessageView | TempDmChatDefs.DeletedMessage | null
1818}) {
1919 const t = useTheme()
2020- const {getAgent} = useAgent()
2020+ const {currentAccount} = useSession()
21212222- const isFromSelf = item.sender?.did === getAgent().session?.did
2222+ const isFromSelf = item.sender?.did === currentAccount?.did
23232424 const isNextFromSelf =
2525 TempDmChatDefs.isMessageView(next) &&
2626- next.sender?.did === getAgent().session?.did
2626+ next.sender?.did === currentAccount?.did
27272828 const isLastInGroup = useMemo(() => {
2929 // if the next message is from a different sender, then it's the last in the group