Editing a Matrix message to be shorter will make OOYE delete it from Matrix #18

Closed
opened 2023-12-03 04:03:08 +00:00 by cadence · 2 comments
Owner
  1. On Matrix, send a message longer than 2000 characters
  2. Edit it to be shorter
  3. OOYE deletes the second message from Discord-side (intended)
  4. OOYE notices a deletion and deletes the message from Matrix-side (oops)
1. On Matrix, send a message longer than 2000 characters 2. Edit it to be shorter 3. OOYE deletes the second message from Discord-side (intended) 4. OOYE notices a deletion and deletes the message from Matrix-side (oops)
Author
Owner

To fix this, I think I just need to remove the relationship between the event and message in the database before deleting it from Discord-side. When the relationship is gone, if OOYE notices a deletion for an unknown message, it won't do anything.

Will check in a fix and test it later.

To fix this, I think I just need to remove the relationship between the event and message in the database before deleting it from Discord-side. When the relationship is gone, if OOYE notices a deletion for an unknown message, it won't do anything. Will check in a fix and test it later.
Author
Owner

Manual testing looks good

Manual testing looks good
Sign in to join this conversation.
No labels
blocking
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cadence/out-of-your-element#18
No description provided.