Page MenuHomePhabricator

D12485.diff
No OneTemporary

D12485.diff

diff --git a/lib/actions/thread-actions.js b/lib/actions/thread-actions.js
--- a/lib/actions/thread-actions.js
+++ b/lib/actions/thread-actions.js
@@ -204,7 +204,7 @@
success: 'NEW_THREAD_SUCCESS',
failed: 'NEW_THREAD_FAILED',
});
-const newThread =
+const newThinThread =
(
callKeyserverEndpoint: CallKeyserverEndpoint,
): ((input: ClientNewThreadRequest) => Promise<NewThreadResult>) =>
@@ -224,10 +224,10 @@
};
};
-function useNewThread(): (
+function useNewThinThread(): (
input: ClientNewThreadRequest,
) => Promise<NewThreadResult> {
- return useKeyserverCall(newThread);
+ return useKeyserverCall(newThinThread);
}
const joinThreadActionTypes = Object.freeze({
@@ -382,7 +382,7 @@
changeThreadMemberRolesActionTypes,
useChangeThreadMemberRoles,
newThreadActionTypes,
- useNewThread,
+ useNewThinThread,
joinThreadActionTypes,
useJoinThread,
leaveThreadActionTypes,
diff --git a/native/chat/compose-subchannel.react.js b/native/chat/compose-subchannel.react.js
--- a/native/chat/compose-subchannel.react.js
+++ b/native/chat/compose-subchannel.react.js
@@ -9,7 +9,7 @@
import {
newThreadActionTypes,
- useNewThread,
+ useNewThinThread,
} from 'lib/actions/thread-actions.js';
import { useENSNames } from 'lib/hooks/ens-cache.js';
import { threadInfoSelector } from 'lib/selectors/thread-selectors.js';
@@ -75,7 +75,7 @@
const { threadType, parentThreadInfo } = props.route.params;
const userInfoInputIDs = userInfoInputArray.map(userInfo => userInfo.id);
- const callNewThread = useNewThread();
+ const callNewThinThread = useNewThinThread();
const calendarQuery = useCalendarQuery();
const newChatThreadAction = React.useCallback(async () => {
try {
@@ -89,7 +89,7 @@
assumedThreadType === 7,
"Sidebars and communities can't be created from the thread composer",
);
- const result = await callNewThread({
+ const result = await callNewThinThread({
type: assumedThreadType,
parentThreadID: parentThreadInfo.id,
initialMemberIDs: userInfoInputIDs,
@@ -113,7 +113,7 @@
userInfoInputIDs,
calendarQuery,
parentThreadInfo,
- callNewThread,
+ callNewThinThread,
onUnknownErrorAlertAcknowledged,
]);
diff --git a/native/community-creation/community-configuration.react.js b/native/community-creation/community-configuration.react.js
--- a/native/community-creation/community-configuration.react.js
+++ b/native/community-creation/community-configuration.react.js
@@ -4,7 +4,7 @@
import { Text, View } from 'react-native';
import {
- useNewThread,
+ useNewThinThread,
newThreadActionTypes,
} from 'lib/actions/thread-actions.js';
import { createLoadingStatusSelector } from 'lib/selectors/loading-selectors.js';
@@ -47,7 +47,7 @@
const dispatchActionPromise = useDispatchActionPromise();
- const callNewThread = useNewThread();
+ const callNewThinThread = useNewThinThread();
const calendarQueryFunc = useCalendarQuery();
const createNewCommunityLoadingStatus: LoadingStatus = useSelector(
@@ -66,7 +66,7 @@
const callCreateNewCommunity = React.useCallback(async () => {
const calendarQuery = calendarQueryFunc();
try {
- const newThreadResult: NewThreadResult = await callNewThread({
+ const newThreadResult: NewThreadResult = await callNewThinThread({
name: pendingCommunityName,
type: announcementSetting
? threadTypes.COMMUNITY_ANNOUNCEMENT_ROOT
@@ -81,7 +81,7 @@
}, [
announcementSetting,
calendarQueryFunc,
- callNewThread,
+ callNewThinThread,
pendingCommunityName,
]);
diff --git a/native/input/input-state-container.react.js b/native/input/input-state-container.react.js
--- a/native/input/input-state-container.react.js
+++ b/native/input/input-state-container.react.js
@@ -18,7 +18,7 @@
useSendTextMessage,
} from 'lib/actions/message-actions.js';
import { queueReportsActionType } from 'lib/actions/report-actions.js';
-import { useNewThread } from 'lib/actions/thread-actions.js';
+import { useNewThinThread } from 'lib/actions/thread-actions.js';
import {
type BlobServiceUploadAction,
type BlobServiceUploadResult,
@@ -1734,7 +1734,7 @@
const callBlobServiceUpload = useBlobServiceUpload();
const callSendMultimediaMessage = useSendMultimediaMessage();
const callSendTextMessage = useSendTextMessage();
- const callNewThinThread = useNewThread();
+ const callNewThinThread = useNewThinThread();
const dispatchActionPromise = useDispatchActionPromise();
const dispatch = useDispatch();
const mediaReportsEnabled = useIsReportEnabled('mediaReports');
diff --git a/web/input/input-state-container.react.js b/web/input/input-state-container.react.js
--- a/web/input/input-state-container.react.js
+++ b/web/input/input-state-container.react.js
@@ -22,7 +22,7 @@
useSendTextMessage,
} from 'lib/actions/message-actions.js';
import { queueReportsActionType } from 'lib/actions/report-actions.js';
-import { useNewThread } from 'lib/actions/thread-actions.js';
+import { useNewThinThread } from 'lib/actions/thread-actions.js';
import {
type BlobServiceUploadAction,
type DeleteUploadInput,
@@ -1671,7 +1671,7 @@
const callDeleteUpload = useDeleteUpload();
const callSendMultimediaMessage = useLegacySendMultimediaMessage();
const callSendTextMessage = useSendTextMessage();
- const callNewThinThread = useNewThread();
+ const callNewThinThread = useNewThinThread();
const dispatch = useDispatch();
const dispatchActionPromise = useDispatchActionPromise();
const modalContext = useModalContext();
diff --git a/web/modals/threads/create/compose-subchannel-modal.react.js b/web/modals/threads/create/compose-subchannel-modal.react.js
--- a/web/modals/threads/create/compose-subchannel-modal.react.js
+++ b/web/modals/threads/create/compose-subchannel-modal.react.js
@@ -4,7 +4,7 @@
import {
newThreadActionTypes,
- useNewThread,
+ useNewThinThread,
} from 'lib/actions/thread-actions.js';
import { createLoadingStatusSelector } from 'lib/selectors/loading-selectors.js';
import type { ThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js';
@@ -82,7 +82,7 @@
const [errorMessage, setErrorMessage] = React.useState<string>('');
const calendarQuery = useSelector(nonThreadCalendarQuery);
- const callNewThread = useNewThread();
+ const callNewThinThread = useNewThinThread();
const dispatchActionPromise = useDispatchActionPromise();
const dispatch = useDispatch();
@@ -92,7 +92,7 @@
const threadType = getThreadType(visibilityType, announcement);
const query = calendarQuery();
- const result = await callNewThread({
+ const result = await callNewThinThread({
name: channelName,
type: threadType,
parentThreadID: parentThreadInfo.id,
@@ -110,7 +110,7 @@
visibilityType,
announcement,
calendarQuery,
- callNewThread,
+ callNewThinThread,
channelName,
parentThreadInfo.id,
parentThreadInfo.color,
diff --git a/web/sidebar/community-creation/community-creation-modal.react.js b/web/sidebar/community-creation/community-creation-modal.react.js
--- a/web/sidebar/community-creation/community-creation-modal.react.js
+++ b/web/sidebar/community-creation/community-creation-modal.react.js
@@ -3,7 +3,7 @@
import * as React from 'react';
import {
- useNewThread,
+ useNewThinThread,
newThreadActionTypes,
} from 'lib/actions/thread-actions.js';
import { useModalContext } from 'lib/components/modal-provider.react.js';
@@ -49,7 +49,7 @@
const dispatch = useDispatch();
const dispatchActionPromise = useDispatchActionPromise();
- const callNewThread = useNewThread();
+ const callNewThinThread = useNewThinThread();
const calendarQueryFunc = useSelector(nonThreadCalendarQuery);
const [errorMessage, setErrorMessage] = React.useState<?string>();
@@ -75,7 +75,7 @@
const calendarQuery = calendarQueryFunc();
try {
- const newThreadResult: NewThreadResult = await callNewThread({
+ const newThreadResult: NewThreadResult = await callNewThinThread({
name: pendingCommunityName,
type: announcementSetting
? threadTypes.COMMUNITY_ANNOUNCEMENT_ROOT
@@ -90,7 +90,7 @@
}, [
announcementSetting,
calendarQueryFunc,
- callNewThread,
+ callNewThinThread,
pendingCommunityName,
]);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 5:58 AM (19 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2599841
Default Alt Text
D12485.diff (8 KB)

Event Timeline