Skip to main content

CustomActions

LikeMinds ReactJS Chat SDK supports the following custom actions.

InputCustomActions​

PropertyTypeDescriptionOptional
onUpdateInputTextInputActionsCallbackCallback for updating input text.✅
onOnTextInputKeydownHandlerInputActionsCallbackCallback for handling keydown events.✅
onOnTextInputKeyUpHandlerInputActionsCallbackCallback for handling keyup events.✅
onClearTaggingListInputActionsCallbackCallback for clearing the tagging list.✅
onAddEmojiToTextInputActionsCallbackCallback for adding an emoji to text.✅
onAddImagesAndVideosMediaInputActionsCallbackCallback for adding images and videos.✅
onAddDocumentsMediaInputActionsCallbackCallback for adding document media.✅
onPostMessageInputActionsCallbackCallback for posting a message.✅
onGetTaggingMembersInputActionsCallbackCallback for fetching tagging members.✅
onRemoveOgTagInputActionsCallbackCallback for removing an Open Graph tag.✅
onSetGifMediaInputActionsCallbackCallback for setting GIF media.✅
onSetOpenGifCollapseInputActionsCallbackCallback for toggling GIF collapse.✅
onGifSearchQueryInputActionsCallbackCallback for handling GIF search queries.✅
onFetchGifsInputActionsCallbackCallback for fetching GIFs.✅
onHandleGifSearchInputActionsCallbackCallback for processing GIF search.✅
onRemoveMediaFromImageListInputActionsCallbackCallback for removing an image from the list.✅
onRemoveMediaFromDocumentListInputActionsCallbackCallback for removing a document from the list.✅
onSendDMRequestInputActionsCallbackCallback for sending a direct message request.✅
onRejectDMRequestInputActionsCallbackCallback for rejecting a direct message request.✅
onAprooveDMRequestInputActionsCallbackCallback for approving a direct message request.✅
onShouldShowInputBoxInputActionsCallbackCallback for determining if input box should show.✅

MessageCustomActions​

PropertyTypeDescriptionOptional
onReportCustomMessageActionsCallbackCallback for reporting a message.✅
onDeleteCustomMessageActionsCallbackCallback for deleting a message.✅
onSetTopicCustomMessageActionsCallbackCallback for setting a topic on a message.✅
onEditCustomMessageActionsCallbackCallback for editing a message.✅
onReplyCustomMessageActionsCallbackCallback for replying to a message.✅
putReactionCustomMessageActionsCallbackCallback for adding a reaction to a message.✅
onReplyPrivatelyCustomMessageActionsCallbackCallback for replying privately to a message.✅

ChatroomMenuCustomActions​

PropertyTypeDescriptionOptional
onMuteCustomChatroomHeaderActionsCallbackCallback for muting a chatroom.✅
onViewParticipantsCustomChatroomHeaderActionsCallbackCallback for viewing participants in a chatroom.✅
onLeaveChatroomCustomChatroomHeaderActionsCallbackCallback for leaving a chatroom.✅
onBlockCustomChatroomHeaderActionsCallbackCallback for blocking a user in the chatroom.✅
onUnBlockCustomChatroomHeaderActionsCallbackCallback for unblocking a user in the chatroom.✅

PollCustomActions​

PropertyTypeDescriptionOptional
submitPollCustomCallbackPollCustomCallbackCallback for submitting a poll.✅
addOptionOnPollCustomCallbackPollCustomCallbackCallback for adding an option to a poll.✅
getPollUsersCustomCallbackPollCustomCallbackCallback for retrieving users who voted in a poll.✅
selectPollOptionCustomCallbackPollCustomCallbackCallback for selecting a poll option.✅

ParticipantsCustomActions​

PropertyTypeDescriptionOptional
getMembersCustomCallbackParticipantsCustomCallbackCallback for retrieving chatroom participants.✅
navigateBackToChatroomCustomCallbackParticipantsCustomCallbackCallback for navigating back to the chatroom.✅
setSearchKeywordCustomCallbackParticipantsCustomCallbackCallback for setting the search keyword.✅

DMChannelListCustomActions​

PropertyTypeDescriptionOptional
getDMChatroomsListCustomCallbackDMChannelListCustomCallbackCallback for retrieving the list of DM chatrooms.✅
refreshDMChatroomsCustomCallbackDMChannelListCustomCallbackCallback for refreshing the DM chatroom list.✅
markReadADMChatroomCustomCallbackDMChannelListCustomCallbackCallback for marking a DM chatroom as read.✅
selectNewChatroomCustomCallbackDMChannelListCustomCallbackCallback for selecting a new DM chatroom.✅

CreatePollCustomActions​

PropertyTypeDescriptionOptional
addPollOptionCustomCallbackCreatePollCustomCallbackCallback for adding a poll option.✅
updatePollOptionCustomCallbackCreatePollCustomCallbackCallback for updating a poll option.✅
removePollOptionCustomCallbackCreatePollCustomCallbackCallback for removing a poll option.✅
createPollConversationCustomCallbackCreatePollCustomCallbackCallback for creating a poll conversation.✅
changePollTextCustomCallbackCreatePollCustomCallbackCallback for changing the poll text.✅
updatePollExpirationDateCustomCallbackCreatePollCustomCallbackCallback for updating the poll expiration date.✅
updateAdvancedOptionsCustomCallbackCreatePollCustomCallbackCallback for updating advanced poll options.✅

ConversationSearchCustomActions​

PropertyTypeDescriptionOptional
searchConversationsCustomCallbackConversationSearchCustomCallbackCallback for searching conversations.✅
resetSearchCustomCallbackConversationSearchCustomCallbackCallback for resetting the search results.✅
setSearchKeyCustomCallbackConversationSearchCustomCallbackCallback for setting the search keyword.✅
onSearchedConversationClickCustomCallbackConversationSearchCustomCallbackCallback for handling a click on a searched conversation.✅

ChannelListCustomActions​

PropertyTypeDescriptionOptional
getChatroomsMineCustomCallbackChannelListCustomCallbackCallback for fetching the user's chatrooms.✅
getExploreGroupChatroomsCustomCallbackChannelListCustomCallbackCallback for retrieving explore group chatrooms.✅
joinAChatroomCustomCallbackChannelListCustomCallbackCallback for joining a chatroom.✅
onLeaveChatroomCustomCallbackChannelListCustomCallbackCallback for leaving a chatroom.✅
markReadAChatroomCustomCallbackChannelListCustomCallbackCallback for marking a chatroom as read.✅
checkForDmTabCustomCallbackChannelListCustomCallbackCallback for checking if the DM tab should be shown.✅
approveDMRequestCustomCallbackChannelListCustomCallbackCallback for approving a direct message request.✅
rejectDMRequestCustomCallbackChannelListCustomCallbackCallback for rejecting a direct message request.✅
selectNewChatroomCustomCallbackChannelListCustomCallbackCallback for selecting a new chatroom.✅

ChatroomCustomActions​

PropertyTypeDescriptionOptional
setChatroomCustomCallbackChatroomCustomCallbackCallback for setting the current chatroom.✅
setConversationToReplyCustomCallbackChatroomCustomCallbackCallback for setting a conversation to reply to.✅
setConversationToEditCustomCallbackChatroomCustomCallbackCallback for setting a conversation to edit.✅
setSearchedConversationIdCustomCallbackChatroomCustomCallbackCallback for setting a searched conversation ID.✅

ChatroomSearchCustomActions​

PropertyTypeDescriptionOptional
searchChatroomsCustomCallbackChatroomSearchCustomCallbackCallback for searching chatrooms.✅
onSearchChatroomClickCustomCallbackChatroomSearchCustomCallbackCallback when a searched chatroom is clicked.✅
setSearchKeyCustomCallbackChatroomSearchCustomCallbackCallback for setting the search key.✅
resetSearchCustomCallbackChatroomSearchCustomCallbackCallback for resetting the search.✅

UserProviderCustomActions​

PropertyTypeDescriptionOptional
logOutCustomCallbackUserProviderActionsCallbackCallback for custom logout logic.✅

ReactionsCustomActions​

PropertyTypeDescriptionOptional
addReactionCustomCallbackReactionCustomCallbackCustom callback for adding a reaction.✅
removeReactionCustomCallbackReactionCustomCallbackCustom callback for removing a reaction.✅

ExploreFeedCustomActions​

PropertyTypeDescriptionOptional
getMembersCustomCallbackExploreFeedCustomCallbackCustom callback for fetching members.✅

Types

Type NameFunction TypeDescription
PollCustomCallback(pollDefaultActions: PollDefaultActions, pollDataStore: PollDataStore) => anyHandles custom actions related to polls.
ReactionCustomCallback(reactionsDefaultAction: ReactionsDefaultActions, reactionsDataStore: ReactionsDataStore) => anyManages custom reactions on messages.
DMChannelListCustomCallback(dmChannelListDefaultActions: DMChannelListDefaultActions, dmChannelListDataStore: DMChannelListDataStore) => anyControls actions for the direct message channel list.
InputActionsCallback(inputDefaultActions: InputDefaultActions, applicationGeneralDataContext: ApplicationGeneralDataContext, inputDataStore: InputDataStore) => anyHandles various input-related events in chat.
MessageActionsCallback(messageDefaultActions: MessageDefaultActions, applicationGeneralDataContext: ApplicationGeneralDataContext) => anyCustom actions for messages such as edit, delete, or report.
ChatroomHeaderActionsCallback(chatroomMenuDefaultActions: ChatroomMenuDefaultActions, applicationGeneralDataContext: ApplicationGeneralDataContext) => anyManages actions in the chatroom header menu.
UserProviderActionsCallback(defaultActions: UserProviderDefaultActions, userProviderDataStore: UserProviderDataStore) => anyHandles user-related actions such as fetching or updating user data.
ExploreFeedCustomCallback(exploreFeedDefaultActions: ExploreFeedDefaultActions, exploreFeedDataStore: ExploreFeedDataStore) => anyCustom logic for exploring feeds.
ParticipantsCustomCallback(participantsDefaultActions: ParticipantsDefaultActions, participantsDataStore: ParticipantsDataStore) => anyControls participant-related actions in chatrooms.
CreatePollCustomCallback(pollDefaultActions: CreatePollDefaultActions, pollDataStore: CreatePollDataStore) => anyCustom actions for creating and managing polls.
ConversationSearchCustomCallback(searchConversationsDefaultActions: ConversationSearchDefaultActions, searchConversationsDataStore: ConversationSearchDataStore) => anyHandles searching within conversations.
ChannelListCustomCallback(channelListDefaultActions: ChannelListDefaultActions, channelListDataStore: ChannelListDataStore) => anyCustom actions for managing chatroom/channel lists.
ChatroomCustomCallback(chatroomDefaultActions: ChatroomDefaultActions, chatroomDataStore: ChatroomDataStore) => anyControls chatroom-specific actions like setting conversations.