Merge a9859d11c056ed8b24406843c60d3527c2fb1565 into 1d1138d0cb941845632cc4a8f74336818d63bcc4

This commit is contained in:
defnax 2025-04-18 11:34:27 +00:00 committed by GitHub
commit 8848249eef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1725,7 +1725,7 @@ void ChatWidget::fileHashingFinished(QList<HashedFile> hashedFiles)
{
QString encodedImage;
uint32_t maxMessageSize = this->maxMessageSize();
if (RsHtml::makeEmbeddedImage(hashedFile.filepath, encodedImage, 640*480, maxMessageSize - 200 - link.toHtmlSize().length()))
if (RsHtml::makeEmbeddedImage(hashedFile.filepath, encodedImage, 800*600, maxMessageSize - 200 - link.toHtmlSize().length()))
{ QTextDocumentFragment fragment = QTextDocumentFragment::fromHtml(encodedImage);
ui->chatTextEdit->textCursor().insertFragment(fragment);
preview=true;

View File

@ -201,7 +201,7 @@ void GxsIdTreeItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem
// additional Qt role only to determine the number of destinations.
if(dt == "")
ownOption.icon = FilesDefs::getIconFromQtResourcePath(":/icons/svg/people2.svg");
ownOption.icon = FilesDefs::getIconFromQtResourcePath(":/icons/png/people2.png");
else if(id.isNull())
{
if (ownOption.icon.isNull())