Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/updaters/thread-permission-updaters.js
// @flow | // @flow | ||||
import invariant from 'invariant'; | import invariant from 'invariant'; | ||||
import _isEqual from 'lodash/fp/isEqual.js'; | import _isEqual from 'lodash/fp/isEqual.js'; | ||||
import bots from 'lib/facts/bots.js'; | import bots from 'lib/facts/bots.js'; | ||||
import genesis from 'lib/facts/genesis.js'; | import genesis from 'lib/facts/genesis.js'; | ||||
import { | import { | ||||
makePermissionsBlob, | makePermissionsBlob, | ||||
makePermissionsForChildrenBlob, | makePermissionsForChildrenBlob, | ||||
getRoleForPermissions, | getRoleForPermissions, | ||||
} from 'lib/permissions/thread-permissions.js'; | } from 'lib/permissions/thread-permissions.js'; | ||||
import type { CalendarQuery } from 'lib/types/entry-types.js'; | import type { CalendarQuery } from 'lib/types/entry-types.js'; | ||||
import type { | |||||
ThreadPermissionsBlob, | |||||
ThreadRolePermissionsBlob, | |||||
} from 'lib/types/thread-permission-types.js'; | |||||
import { | import { | ||||
type ThreadPermissionsBlob, | |||||
type ThreadRolePermissionsBlob, | |||||
type ThreadType, | type ThreadType, | ||||
assertThreadType, | assertThreadType, | ||||
} from 'lib/types/thread-types.js'; | } from 'lib/types/thread-types-enum.js'; | ||||
import { | import { | ||||
updateTypes, | updateTypes, | ||||
type ServerUpdateInfo, | type ServerUpdateInfo, | ||||
type CreateUpdatesResult, | type CreateUpdatesResult, | ||||
} from 'lib/types/update-types.js'; | } from 'lib/types/update-types.js'; | ||||
import { pushAll } from 'lib/utils/array.js'; | import { pushAll } from 'lib/utils/array.js'; | ||||
import { ServerError } from 'lib/utils/errors.js'; | import { ServerError } from 'lib/utils/errors.js'; | ||||
▲ Show 20 Lines • Show All 1,262 Lines • Show Last 20 Lines |