packages/lobsang-connect-matrix/lib/sync.js
function isSyncState (state) {
  if (state === CONSTANTS.MATRIX_STATE_PREPARED) {
    return true
  }

  if (state === CONSTANTS.MATRIX_STATE_SYNCING) {
    return true
  }

  return false
}
function isSyncState (state) {
  if (state === CONSTANTS.MATRIX_STATE_PREPARED) {
    return true
  }

  if (state === CONSTANTS.MATRIX_STATE_SYNCING) {
    return true
  }

  return false
}
@module @lobsangnet/lobsang-connect-matrix/sync
 
Helper method to check the state against those indicating some sync state.

@private
@param {String} state - The current state of MatrixClient
@returns {Boolean}
Indicating whether the client is already synced (or syncing)
Or in another state.