diff --git a/keyserver/src/push/send.js b/keyserver/src/push/send.js --- a/keyserver/src/push/send.js +++ b/keyserver/src/push/send.js @@ -626,12 +626,15 @@ threadPromise, oldNamesPromise, ]); - const serverThreadInfos = threadResult.threadInfos; + const serverThreadInfos = { ...threadResult.threadInfos }; if (oldNames) { const [result] = oldNames; for (const row of result) { const threadID = row.thread.toString(); - serverThreadInfos[threadID].name = row.name; + serverThreadInfos[threadID] = { + ...serverThreadInfos[threadID], + name: row.name, + }; } }