diff --git a/lib/utils/create-farcaster-raw-thread-info.js b/lib/utils/create-farcaster-raw-thread-info.js --- a/lib/utils/create-farcaster-raw-thread-info.js +++ b/lib/utils/create-farcaster-raw-thread-info.js @@ -21,7 +21,10 @@ farcasterThreadIDFromConversationID, getFIDFromUserID, } from '../shared/id-utils.js'; -import { stringForUserExplicit } from '../shared/user-utils.js'; +import { + ensNameForFarcasterUsername, + stringForUserExplicit, +} from '../shared/user-utils.js'; import type { AuxUserStore } from '../types/aux-user-types.js'; import type { ClientAvatar } from '../types/avatar-types.js'; import type { @@ -256,9 +259,10 @@ if (!conversation.isGroup) { const otherUserName = conversation.viewerContext.counterParty?.username ?? - conversation.viewerContext.counterParty?.displayName ?? - 'anonymous'; - name = otherUserName; + conversation.viewerContext.counterParty?.displayName; + name = otherUserName + ? ensNameForFarcasterUsername(otherUserName) + : 'anonymous'; } const threadData: FarcasterThreadData = { threadID,