deactivateUserChatPresence(id, userId) {
    firebase.database().ref('.info/connected').off();
    firebase
      .database()
      .ref('chatStatuses/' + id + '/users/' + userId)
      .set({
        status: OFF,
        lastActiveDateTime: firebase.database.ServerValue.TIMESTAMP,
      });
  }
/**
   * Deactivate a user presence on a chat
   * @param {string} id The id of the chat
   * @param {string} userId The id of the user
   */
Deactivate a user presence on a chat
@param {string} id The id of the chat
@param {string} userId The id of the user
Deactivate a user presence on a chat @param { string } id The id of the chat @param { string } userId The id of the user
deactivateUserChatPresence(id, userId) {
    firebase.database().ref('.info/connected').off();
    firebase
      .database()
      .ref('chatStatuses/' + id + '/users/' + userId)
      .set({
        status: OFF,
        lastActiveDateTime: firebase.database.ServerValue.TIMESTAMP,
      });
  }
deactivateUserChatPresence ( id , userId ) { firebase . database ( ) . ref ( '.info/connected' ) . off ( ) ; firebase . database ( ) . ref ( 'chatStatuses/' + id + '/users/' + userId ) . set ( { status : OFF , lastActiveDateTime : firebase . database . ServerValue . TIMESTAMP , } ) ; }
Deactivate a user presence on a chat
 @param {string} id The id of the chat
 @param {string} userId The id of the user
Deactivate a user presence on a chat @param { string } id The id of the chat @param { string } userId The id of the user