Fix poll results being double-bridged

Oddly, this would only occur for the first poll in a channel.
This commit is contained in:
Ellie Algase
2026-02-04 13:02:43 +13:00
committed by Cadence Ember
parent aa7222c4ed
commit 52d9c6fea8
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ async function editToChanges(message, guild, api) {
// Since an update in August 2024, the system always provides the full data of message updates.
// Now, this code path is only used by generated embeds for messages that were originally sent from Matrix.
const originallyFromMatrix = oldEventRows.find(r => r.part === 0)?.source === 0
const originallyFromMatrix = oldEventRows.some(r => r.source === 0)
const mightBeGeneratedEmbed = !("content" in message) || originallyFromMatrix
// Figure out who to send as