Skip to content

Commit

Permalink
[web] Fix channel deletion problem
Browse files Browse the repository at this point in the history
Summary: Because of D8513, channel, subchannel, and thread deletion stopped working. This diff fixes this issue.

Test Plan: Run web app and check if channel, subchannel, and thread deletion are working.

Reviewers: ashoat, tomek

Reviewed By: ashoat

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8528
  • Loading branch information
pklatka committed Jul 19, 2023
1 parent eabd321 commit faf8dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyserver/src/deleters/thread-deleters.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function deleteThread(
const threadIDs = await fetchContainedThreadIDs(threadID);

const [{ threadInfos: serverThreadInfos }] = await Promise.all([
fetchServerThreadInfos({ threadIDs: new Set(threadID) }),
fetchServerThreadInfos({ threadIDs: new Set(threadIDs) }),
rescindPushNotifs(
SQL`n.thread IN (${threadIDs})`,
SQL`IF(m.thread IN (${threadIDs}), NULL, m.thread)`,
Expand Down

0 comments on commit faf8dce

Please sign in to comment.