fix: get full snapshot for message timeouts (#6683)

Reviewed-by: pajlada <rasmus.karlsson+github@pajlada.com>
Reported-by: James Upjohn <jupjohn@jammeh.co.nz>
This commit is contained in:
nerix
2025-12-27 14:31:37 +01:00
committed by GitHub
parent 46df2d5320
commit a6d7918f07
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@
- Dev: Mock headers are now added as a header set if supported by CMake. (#6561) - 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: Set settings directory to temporary one used in tests. (#6584)
- Dev: Check Lua unwinding and version in tests. (#6586) - 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: Fixed some layout spaghetti in `SplitInput`. (#6654)
- Dev: Unwrapped `LimitedQueueSnapshot` to `std::vector`. (#6606) - Dev: Unwrapped `LimitedQueueSnapshot` to `std::vector`. (#6606)
- Dev: Simplified uses of `getMessageSnapshot`. (#6607) - Dev: Simplified uses of `getMessageSnapshot`. (#6607)
+1 -1
View File
@@ -132,7 +132,7 @@ void Channel::addSystemMessage(const QString &contents)
void Channel::addOrReplaceTimeout(MessagePtr message, const QDateTime &now) void Channel::addOrReplaceTimeout(MessagePtr message, const QDateTime &now)
{ {
addOrReplaceChannelTimeout( addOrReplaceChannelTimeout(
this->getMessageSnapshot(20), std::move(message), now, this->getMessageSnapshot(), std::move(message), now,
[this](auto /*idx*/, auto msg, auto replacement) { [this](auto /*idx*/, auto msg, auto replacement) {
this->replaceMessage(msg, replacement); this->replaceMessage(msg, replacement);
}, },