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.
This commit is contained in:
Cadence Ember 2026-06-16 20:11:39 +12:00
commit 34fc21fa15

View file

@ -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