Page MenuHomePhorge

D15223.1765047955.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D15223.1765047955.diff

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

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)

Event Timeline