Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
CometChat.removeMessageListener(LISTENER_NEW_MESSAGE);
CometChat.removeMessageListener(LISTENER_REAL_TIME_RECIEPTS);
CometChat.removeMessageListener(LISTENER_RT_MSG_EDIT);
CometChat.removeMessageListener(LISTENER_RT_MSG_DELETE);
}
componentWillUnmount() {
CometChat.removeMessageListener(LISTENER_NEW_MESSAGE);
CometChat.removeMessageListener(LISTENER_REAL_TIME_RECIEPTS);
CometChat.removeMessageListener(LISTENER_RT_MSG_EDIT);
CometChat.removeMessageListener(LISTENER_RT_MSG_DELETE);
}
componentWillUnmount() {
CometChat.removeMessageListener(LISTENER_NEW_MESSAGE);
CometChat.removeMessageListener(LISTENER_REAL_TIME_RECIEPTS);
CometChat.removeMessageListener(LISTENER_RT_MSG_EDIT);
CometChat.removeMessageListener(LISTENER_RT_MSG_DELETE);
}
componentWillUnmount() {
CometChat.removeMessageListener("CHAT_BOX_LISTENER");
}
componentWillUnmount() {
CometChat.removeMessageListener(LISTENER_NEW_MESSAGE);
CometChat.removeMessageListener(LISTENER_REAL_TIME_RECIEPTS);
CometChat.removeMessageListener(LISTENER_RT_MSG_EDIT);
CometChat.removeMessageListener(LISTENER_RT_MSG_DELETE);
}
static removeListener() {
CometChat.removeMessageListener(this.LISTENER_KEY_MESSAGE);
CometChat.removeUserListener(this.LISTENER_KEY_USER);
CometChat.removeGroupListener(this.LISTENER_KEY_GROUP);
CometChat.removeCallListener(this.LISTENER_KEY_CALL);
}