Page MenuHomePhorge

D15514.1764950305.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D15514.1764950305.diff

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,

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 5, 3:58 PM (13 m, 58 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5828421
Default Alt Text
D15514.1764950305.diff (1 KB)

Event Timeline