From 34fc21fa15e18f7c2dbe4db2b4472d4d83bd5d9b Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 16 Jun 2026 20:11:39 +1200 Subject: [PATCH] Fix PluralKit replies being duplicated There was a race condition on create/update that was skipping the remedial code due to a bad assumption about the speedbump. --- src/d2m/event-dispatcher.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/d2m/event-dispatcher.js b/src/d2m/event-dispatcher.js index d52a340..03ca72b 100644 --- a/src/d2m/event-dispatcher.js +++ b/src/d2m/event-dispatcher.js @@ -338,10 +338,8 @@ module.exports = { const {affected, row} = await speedbump.maybeDoSpeedbump(data.channel_id, data.id, data.author.id) if (affected) return - if (!row) { - // Check that the sending-to room exists, and deal with Eventual Consistency(TM) - if (!await retrigger.waitForMessage(data.id)) return - } + // Check that the sending-to room exists, and deal with Eventual Consistency(TM) + if (!await retrigger.waitForMessage(data.id)) return /** @type {DiscordTypes.GatewayMessageCreateDispatchData} */ // @ts-ignore