Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33377581
D13556.1768959536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13556.1768959536.diff
View Options
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
@@ -550,7 +550,7 @@
const sidebarCreation =
this.pendingSidebarCreationMessageLocalIDs.has(localID);
try {
- const { result } = await this.props.sendMultimediaMessage(
+ const { result, mediaIDUpdates } = await this.props.sendMultimediaMessage(
messageInfo,
sidebarCreation,
true,
@@ -565,9 +565,15 @@
if (upload.messageID !== localID) {
newUploads[localUploadID] = upload;
} else if (!upload.uriIsReal) {
+ const { serverID } = upload;
+ let newServerID = serverID;
+ if (serverID && mediaIDUpdates?.[serverID]) {
+ newServerID = mediaIDUpdates[serverID].id;
+ }
newUploads[localUploadID] = {
...upload,
messageID: result.serverID,
+ serverID: newServerID,
};
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 21, 1:38 AM (19 h, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5965644
Default Alt Text
D13556.1768959536.diff (1 KB)
Attached To
Mode
D13556: [web] Update serverID for pendingUploads after reassignment
Attached
Detach File
Event Timeline
Log In to Comment