Page MenuHomePhorge

D9857.1767160673.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D9857.1767160673.diff

diff --git a/keyserver/src/updaters/relationship-updaters.js b/keyserver/src/updaters/relationship-updaters.js
--- a/keyserver/src/updaters/relationship-updaters.js
+++ b/keyserver/src/updaters/relationship-updaters.js
@@ -13,6 +13,7 @@
directedStatus,
} from 'lib/types/relationship-types.js';
import { threadTypes } from 'lib/types/thread-types-enum.js';
+import type { NewThreadResponse } from 'lib/types/thread-types.js';
import { updateTypes } from 'lib/types/update-types-enum.js';
import { type UpdateData } from 'lib/types/update-types.js';
import { cartesianProduct } from 'lib/utils/array.js';
@@ -335,7 +336,7 @@
threadIDPerUser[user2] = row.threadID.toString();
}
- const threadCreationPromises = {};
+ const threadCreationPromises: { [string]: Promise<NewThreadResponse> } = {};
for (const userID of request.userIDs) {
if (threadIDPerUser[userID]) {
continue;
@@ -354,8 +355,7 @@
for (const userID in personalThreadPerUser) {
const newThread = personalThreadPerUser[userID];
- threadIDPerUser[userID] =
- newThread.newThreadID ?? newThread.newThreadInfo.id;
+ threadIDPerUser[userID] = newThread.newThreadID;
}
return threadIDPerUser;

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 31, 5:57 AM (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5869810
Default Alt Text
D9857.1767160673.diff (1 KB)

Event Timeline