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:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user