diff --git a/CHANGELOG.md b/CHANGELOG.md index 70be5854..4914d348 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,7 +62,7 @@ - Dev: Mock headers are now added as a header set if supported by CMake. (#6561) - Dev: Set settings directory to temporary one used in tests. (#6584) - Dev: Check Lua unwinding and version in tests. (#6586) -- Dev: Added method to get the last N messages of a channel. (#6602, #6604) +- Dev: Added method to get the last N messages of a channel. (#6602, #6604, #6683) - Dev: Fixed some layout spaghetti in `SplitInput`. (#6654) - Dev: Unwrapped `LimitedQueueSnapshot` to `std::vector`. (#6606) - Dev: Simplified uses of `getMessageSnapshot`. (#6607) diff --git a/src/common/Channel.cpp b/src/common/Channel.cpp index 602d2348..d9cbc3ca 100644 --- a/src/common/Channel.cpp +++ b/src/common/Channel.cpp @@ -132,7 +132,7 @@ void Channel::addSystemMessage(const QString &contents) void Channel::addOrReplaceTimeout(MessagePtr message, const QDateTime &now) { addOrReplaceChannelTimeout( - this->getMessageSnapshot(20), std::move(message), now, + this->getMessageSnapshot(), std::move(message), now, [this](auto /*idx*/, auto msg, auto replacement) { this->replaceMessage(msg, replacement); },