Page MenuHomePhabricator

D5059.diff
No OneTemporary

D5059.diff

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

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)

Event Timeline