fixed double events from socket
fixes for socket and the removing for chat groups