mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-25 16:54:48 +08:00
messagesadapter: re-add isSwarm
This show "Copy to Downloads" for file transfer in swarm. Change-Id: I7002ce22898ced361ca3df1fa535dd7ec88e0d70 GitLab: https://git.jami.net/savoirfairelinux/ring-project/-/issues/1282
This commit is contained in:
@@ -62,6 +62,7 @@ MessagesAdapter::setupChatView(const QVariantMap& convInfo)
|
||||
Utils::oneShotConnect(qmlObj_, SIGNAL(messagesCleared()), this, SLOT(slotMessagesCleared()));
|
||||
setMessagesVisibility(false);
|
||||
clearChatView();
|
||||
setIsSwarm(convInfo["isSwarm"].toBool());
|
||||
|
||||
Q_EMIT newMessageBarPlaceholderText(convInfo["title"].toString());
|
||||
}
|
||||
@@ -374,6 +375,13 @@ MessagesAdapter::setMessagesVisibility(bool visible)
|
||||
QMetaObject::invokeMethod(qmlObj_, "webViewRunJavaScript", Q_ARG(QVariant, s));
|
||||
}
|
||||
|
||||
void
|
||||
MessagesAdapter::setIsSwarm(bool isSwarm)
|
||||
{
|
||||
QString s = QString::fromLatin1("set_is_swarm(%1)").arg(isSwarm);
|
||||
QMetaObject::invokeMethod(qmlObj_, "webViewRunJavaScript", Q_ARG(QVariant, s));
|
||||
}
|
||||
|
||||
void
|
||||
MessagesAdapter::clearChatView()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user