Created
October 11, 2021 03:40
-
-
Save hieptl/ac55a0ff60d66a7e74b70ac37da47a03 to your computer and use it in GitHub Desktop.
RemoveGroupMembers.js - Call CometChat Service to Remove Members - React Native Gifted Chat App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const GUID = selectedUser.guid; | |
const UID = selectedUser.uid; | |
cometChat.kickGroupMember(GUID, UID).then( | |
response => { | |
setIsLoading(false); | |
showMessage('Info', `${selectedUser.name} was removed from the group successfully`); | |
searchGroupMembers(); | |
}, | |
error => { | |
} | |
); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment