diff --git a/keyserver/src/scripts/move-threads.js b/keyserver/src/scripts/move-threads.js new file mode 100644 --- /dev/null +++ b/keyserver/src/scripts/move-threads.js @@ -0,0 +1,36 @@ +// @flow + +import ashoat from 'lib/facts/ashoat'; +import { threadTypes } from 'lib/types/thread-types'; + +import { createScriptViewer } from '../session/scripts'; +import { updateThread } from '../updaters/thread-updaters'; +import { main } from './utils'; + +async function moveThreads() { + const viewer = createScriptViewer(ashoat.id); + await updateThread( + viewer, + { + threadID: '1251682', // comm global hq + changes: { + type: threadTypes.COMMUNITY_SECRET_SUBTHREAD, + parentThreadID: '311733', // Comm + }, + }, + { ignorePermissions: true }, + ); + await updateThread( + viewer, + { + threadID: '1512796', // Bird App + changes: { + type: threadTypes.COMMUNITY_OPEN_SUBTHREAD, + parentThreadID: '311733', // Comm + }, + }, + { ignorePermissions: true }, + ); +} + +main([moveThreads]);