Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32197351
D15244.1765103199.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D15244.1765103199.diff
View Options
diff --git a/lib/permissions/farcaster-permissions.js b/lib/permissions/farcaster-permissions.js
--- a/lib/permissions/farcaster-permissions.js
+++ b/lib/permissions/farcaster-permissions.js
@@ -79,9 +79,6 @@
[threadPermissions.VOICED]: true,
[threadPermissions.REACT_TO_MESSAGE]: true,
[threadPermissions.EDIT_MESSAGE]: true,
- [threadPermissions.EDIT_THREAD_NAME]: true,
- [threadPermissions.EDIT_THREAD_DESCRIPTION]: true,
- [threadPermissions.EDIT_THREAD_AVATAR]: true,
[threadPermissions.DELETE_OWN_MESSAGES]: true,
};
return {
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
@@ -120,13 +120,26 @@
avatar = uri ? { type: 'image', uri } : null;
}
+ let name = conversation.name;
+ let description = conversation.description;
+ if (!conversation.isGroup) {
+ // For a 1-1 conversation, follow the Farcaster approach and show user's
+ // name as the conversation name
+ const otherUserName =
+ conversation.viewerContext.counterParty?.displayName ??
+ conversation.viewerContext.counterParty?.username ??
+ 'anonymous';
+ name = otherUserName;
+ description = `Your Direct Cast with ${otherUserName}`;
+ }
+
return {
farcaster: true,
id: threadID,
type: threadType,
- name: conversation.name,
+ name,
avatar,
- description: conversation.description,
+ description,
color: generatePendingThreadColor(userIDs),
parentThreadID: null,
community: null,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 10:26 AM (10 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5842025
Default Alt Text
D15244.1765103199.diff (1 KB)
Attached To
Mode
D15244: [lib] update permissions for Farcaster 1-1 messages
Attached
Detach File
Event Timeline
Log In to Comment