Page MenuHomePhorge

D11821.1765297832.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D11821.1765297832.diff

diff --git a/lib/actions/community-actions.js b/lib/actions/community-actions.js
--- a/lib/actions/community-actions.js
+++ b/lib/actions/community-actions.js
@@ -6,6 +6,8 @@
import type {
CreateOrUpdateFarcasterChannelTagRequest,
CreateOrUpdateFarcasterChannelTagResponse,
+ DeleteFarcasterChannelTagRequest,
+ DeleteFarcasterChannelTagPayload,
} from '../types/community-types.js';
const updateCalendarCommunityFilter = 'UPDATE_CALENDAR_COMMUNITY_FILTER';
@@ -62,6 +64,36 @@
failed: 'DELETE_FARCASTER_CHANNEL_TAG_FAILED',
});
+const deleteFarcasterChannelTag =
+ (
+ callKeyserverEndpoint: CallKeyserverEndpoint,
+ ): ((
+ input: DeleteFarcasterChannelTagRequest,
+ ) => Promise<DeleteFarcasterChannelTagPayload>) =>
+ async input => {
+ const keyserverID = extractKeyserverIDFromID(input.commCommunityID);
+
+ const requests = {
+ [keyserverID]: {
+ commCommunityID: input.commCommunityID,
+ farcasterChannelID: input.farcasterChannelID,
+ blobHolder: input.blobHolder,
+ },
+ };
+
+ await callKeyserverEndpoint('delete_farcaster_channel_tag', requests);
+
+ return {
+ commCommunityID: input.commCommunityID,
+ };
+ };
+
+function useDeleteFarcasterChannelTag(): (
+ input: DeleteFarcasterChannelTagRequest,
+) => Promise<DeleteFarcasterChannelTagPayload> {
+ return useKeyserverCall(deleteFarcasterChannelTag);
+}
+
export {
updateCalendarCommunityFilter,
clearCalendarCommunityFilter,
@@ -71,4 +103,5 @@
createOrUpdateFarcasterChannelTagActionTypes,
useCreateOrUpdateFarcasterChannelTag,
deleteFarcasterChannelTagActionTypes,
+ useDeleteFarcasterChannelTag,
};

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 9, 4:30 PM (14 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5855391
Default Alt Text
D11821.1765297832.diff (1 KB)

Event Timeline