Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3366985
D5059.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D5059.diff
View Options
diff --git a/lib/actions/message-actions.js b/lib/actions/message-actions.js
--- a/lib/actions/message-actions.js
+++ b/lib/actions/message-actions.js
@@ -124,7 +124,7 @@
success: 'SEND_MULTIMEDIA_MESSAGE_SUCCESS',
failed: 'SEND_MULTIMEDIA_MESSAGE_FAILED',
});
-const sendMultimediaMessage = (
+const legacySendMultimediaMessage = (
fetchJSON: FetchJSON,
): ((
threadID: string,
@@ -172,7 +172,7 @@
sendTextMessage,
createLocalMessageActionType,
sendMultimediaMessageActionTypes,
- sendMultimediaMessage,
+ legacySendMultimediaMessage,
saveMessagesActionType,
processMessagesActionType,
messageStorePruneActionType,
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
@@ -10,7 +10,7 @@
import {
createLocalMessageActionType,
sendMultimediaMessageActionTypes,
- sendMultimediaMessage,
+ legacySendMultimediaMessage,
sendTextMessageActionTypes,
sendTextMessage,
} from 'lib/actions/message-actions';
@@ -1382,7 +1382,9 @@
const hasWiFi = useSelector(state => state.connectivity.hasWiFi);
const calendarQuery = useCalendarQuery();
const callUploadMultimedia = useServerCall(uploadMultimedia);
- const callSendMultimediaMessage = useServerCall(sendMultimediaMessage);
+ const callSendMultimediaMessage = useServerCall(
+ legacySendMultimediaMessage,
+ );
const callSendTextMessage = useServerCall(sendTextMessage);
const callNewThread = useServerCall(newThread);
const dispatchActionPromise = useDispatchActionPromise();
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
@@ -15,7 +15,7 @@
import {
createLocalMessageActionType,
sendMultimediaMessageActionTypes,
- sendMultimediaMessage,
+ legacySendMultimediaMessage,
sendTextMessageActionTypes,
sendTextMessage,
} from 'lib/actions/message-actions';
@@ -1245,7 +1245,9 @@
const calendarQuery = useSelector(nonThreadCalendarQuery);
const callUploadMultimedia = useServerCall(uploadMultimedia);
const callDeleteUpload = useServerCall(deleteUpload);
- const callSendMultimediaMessage = useServerCall(sendMultimediaMessage);
+ const callSendMultimediaMessage = useServerCall(
+ legacySendMultimediaMessage,
+ );
const callSendTextMessage = useServerCall(sendTextMessage);
const callNewThread = useServerCall(newThread);
const dispatch = useDispatch();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 1:13 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2584857
Default Alt Text
D5059.diff (2 KB)
Attached To
Mode
D5059: [lib] Rename `sendMultimediaMessage` => `legacySendMultimediaMessage` in `message-actions.js`
Attached
Detach File
Event Timeline
Log In to Comment