Skip to main content

DefaultActions

FeedListDefaultActions

KeyTypeDescriptionOptional
deletePost(id: string) => Promise<void>Deletes a post by its ID
pinPost(id: string) => Promise<void>Pins a post by its ID
likePost(id: string) => Promise<void>Likes a post by its ID
getNextPage() => Promise<void>Fetches the next page of posts

FeedPostDetailsDefaultActions

KeyTypeDescriptionOptional
addNewComment(comment: Reply, userMap: Record<string, User>) => voidAdds a new comment to the post.No
removeAComment(id: string) => voidRemoves a comment by its ID.No
updateReplyOnPostReply(id: string) => voidUpdates a reply on a post reply.No
updateReply(comment: Reply, usersMap: Record<string, User>) => voidUpdates a reply with new information.No
likeReply(id: string) => Promise<void>Likes a reply by its ID.No
likePost(id: string) => Promise<void>Likes a post by its ID.No
pinPost(id: string) => Promise<void>Pins a post by its ID.No
deletePost(id: string) => Promise<void>Deletes a post by its ID.No
getNextPage() => Promise<void>Retrieves the next page of posts.No

NotificationsDefaultActions

KeyTypeDescriptionOptional
handleNotification(id: string) => voidHandles a notification by its ID.No
getNotifications() => Promise<void>Retrieves notifications asynchronously.No

TopicsDefaultAction

KeyTypeDescriptionOptional
setSearchKeyReact.Dispatch<string>Dispatch function to set the search key.No
updateCheckedTopics(topic: Topic) => voidFunction to update the checked topics based on a topic.No
clearAllCheckedTopics() => voidFunction to clear all checked topics.No
getNextPage() => Promise<void>Function to fetch the next page of topics.No

ModerationDefaultActions

KeyTypeDescriptionOptional
selectTab(tab: string) => voidSelects a moderation tab.No
handleOnApprovedPostClicked(reportIds: number[]) => Promise<void>Handles clicking to approve a post.No
handleOnRejectedPostClicked(reportIds: number[]) => Promise<void>Handles clicking to reject a post.No
onApprovedCallback(groupReport: GroupReport) => Promise<void>Callback triggered when a report is approved.No
onRejectedCallback(groupReport: GroupReport, postId: string) => Promise<void>Callback triggered when a report is rejected.No
editMemberPermissionsHandler(uuid: string) => Promise<void>Handles editing member permissions.No
updateMemberRightsHandler() => Promise<void>Handles updating member rights.No
setIsEditPermissionDialogOpenReact.Dispatch<React.SetStateAction<boolean>>Controls visibility of the edit permissions dialog.No
setModifiedRightsReact.Dispatch<React.SetStateAction<MemberRights[] >>Sets the modified member rights.No
setCustomTitleReact.Dispatch<React.SetStateAction<string>>Sets a custom title.No
setCurrentReportReact.Dispatch<React.SetStateAction<GroupReport | null>>Sets the current report being moderated.No
handleHeaderLeadingTap() => voidHandles tap action on the header leading element.No
handleHeaderTextTap() => voidHandles tap action on the header text.No
handleHeaderTrailingTap() => voidHandles tap action on the header trailing element.No

RepliesDefaultAction

KeyTypeDescriptionOptional
deleteReply(id: string) => Promise<void>Deletes a reply by its ID.No
likeReply(id: string) => Promise<void>Likes a reply by its ID.No
updateReply(comment: Reply, usersMap: Record<string, User>) => voidUpdates a reply with new information.No

PostCreationDefaultActions

KeyTypeDescriptionOptional
postFeed(customWidgets?: Record<string, any>[]) => Promise<void>Function to post a new feed with optional custom widgets.No
editPost(customWidgets?: Record<string, any>[]) => Promise<void>Function to edit an existing post with optional custom widgets.No