mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-15 21:15:24 +02:00
messagesadapter: do not use .arg() for printing messages
This breaks messages with %Num inside. .arg() is useful for l20n but here we don't care as the two arguments will always be in the same order. GitLab: #529 Change-Id: I018bdecdf51d30be887ab4a50ef54401f2f34235
This commit is contained in:
parent
d058ce201d
commit
3f27289fd8
1 changed files with 3 additions and 3 deletions
|
@ -400,9 +400,9 @@ MessagesAdapter::updateHistory(lrc::api::ConversationModel& conversationModel,
|
|||
auto conversationId = lrcInstance_->get_selectedConvUid();
|
||||
auto interactionsStr
|
||||
= interactionsToJsonArrayObject(conversationModel, conversationId, interactions).toUtf8();
|
||||
QString s = QString::fromLatin1("updateHistory(%1, %2);")
|
||||
.arg(interactionsStr.constData())
|
||||
.arg(allLoaded);
|
||||
QString s;
|
||||
QTextStream out(&s);
|
||||
out << "updateHistory(" << interactionsStr << ", " << (allLoaded? "true" : "false") << ");";
|
||||
QMetaObject::invokeMethod(qmlObj_, "webViewRunJavaScript", Q_ARG(QVariant, s));
|
||||
conversationModel.clearUnreadInteractions(conversationId);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue