diff --git a/changelog.d/761.bugfix b/changelog.d/761.bugfix new file mode 100644 index 00000000..125f4300 --- /dev/null +++ b/changelog.d/761.bugfix @@ -0,0 +1 @@ + Fix issue with slack edits not appearing on Matrix. diff --git a/src/BridgedRoom.ts b/src/BridgedRoom.ts index 126d6815..dd22907e 100644 --- a/src/BridgedRoom.ts +++ b/src/BridgedRoom.ts @@ -699,7 +699,8 @@ export class BridgedRoom { await new Promise((r) => setTimeout(r, PUPPET_INCOMING_DELAY_MS)); } } - if (this.recentSlackMessages.includes(message.ts)) { + const isMessageChangedEvent = message.subtype && message.subtype === 'message_changed'; + if (!isMessageChangedEvent && this.recentSlackMessages.includes(message.ts)) { // We sent this, ignore. return; } @@ -712,7 +713,7 @@ export class BridgedRoom { } this.slackSendLock = this.slackSendLock.then(() => { // Check again - if (this.recentSlackMessages.includes(message.ts)) { + if (!isMessageChangedEvent && this.recentSlackMessages.includes(message.ts)) { // We sent this, ignore return; }