refactor: add Channel::addSystemMessage function (#5500)

This commit is contained in:
pajlada
2024-07-07 22:03:05 +02:00
committed by GitHub
parent 4535823ca8
commit 354079c74c
47 changed files with 443 additions and 588 deletions
+4 -4
View File
@@ -68,9 +68,9 @@ void load(
if (errorCode == "channel_not_joined" &&
!messages.empty())
{
shared->addMessage(makeSystemMessage(
shared->addSystemMessage(
"Message history service recovering, there may "
"be gaps in the message history."));
"be gaps in the message history.");
}
}
@@ -87,10 +87,10 @@ void load(
qCDebug(LOG) << "Failed to load recent messages for"
<< shared->getName();
shared->addMessage(makeSystemMessage(
shared->addSystemMessage(
QStringLiteral(
"Message history service unavailable (Error: %1)")
.arg(result.formatError())));
.arg(result.formatError()));
onError();
})