fix: only notify listeners of edits and redactions their sender may make

CA
1d ago
+425-5

Fixes CORE-2736

Summary by CodeRabbit

  • Bug Fixes
    • Notifications now skip message edits when the original message is missing or the edit fails validation.
    • Redaction notifications are sent only when the target exists and the redaction is permitted. Redactions targeting events in another room or room-creation events, or lacking required permissions, do not trigger notifications.
    • Invalid or unauthorized events are no longer emitted as notifications.