Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32164268
D15223.1765047955.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
D15223.1765047955.diff
View Options
diff --git a/lib/shared/threads/protocols/farcaster-thread-protocol.js b/lib/shared/threads/protocols/farcaster-thread-protocol.js
--- a/lib/shared/threads/protocols/farcaster-thread-protocol.js
+++ b/lib/shared/threads/protocols/farcaster-thread-protocol.js
@@ -18,10 +18,14 @@
RawThreadInfo,
RoleInfo,
ThreadCurrentUserInfo,
+ ThreadInfo,
} from '../../../types/minimally-encoded-thread-permissions-types.js';
import type { SubscriptionUpdateResult } from '../../../types/subscription-types.js';
import type { ThreadType } from '../../../types/thread-types-enum.js';
-import { assertFarcasterThreadType } from '../../../types/thread-types-enum.js';
+import {
+ assertFarcasterThreadType,
+ farcasterThreadTypes,
+} from '../../../types/thread-types-enum.js';
import type {
ChangeThreadSettingsPayload,
ClientDBThreadInfo,
@@ -135,8 +139,8 @@
couldBeCreatedFromPendingThread: () => true,
- canBeFrozen: (): boolean => {
- throw new Error('canBeFrozen method is not yet implemented');
+ canBeFrozen: (thread: ThreadInfo) => {
+ return thread.type === farcasterThreadTypes.FARCASTER_PERSONAL;
},
pendingThreadType: (): ThreadType => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 7:05 PM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840298
Default Alt Text
D15223.1765047955.diff (1 KB)
Attached To
Mode
D15223: [lib] Allow opening a Farcaster thread
Attached
Detach File
Event Timeline
Log In to Comment