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:
@@ -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