Skip to content

Allow to correct multiple messages

This MR changes the way MessageModel concludes whether the message is suitable for correction. Now the message is correctable only if it is

  • Sent by us (.sentByMe method of the model instead of comparing the jids)
  • Is among the latest N messages (can be set to 1 to return the previous behavior, MAX_CORRECTION_MESSAGE_COUNT_DEPTH constant)
  • Wasn't sent (delivered by CC) earlier than N days ago (MAX_CORRECTION_MESSAGE_DAYS_DEPTH constant)

Both constants are set to 20 for now, feel free to tell me to adjust it

Edited by Linus Jahn

Merge request reports

Loading