This commit is contained in:
defnax 2025-07-08 12:55:52 +00:00 committed by GitHub
commit 4181ef42f1
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; QString encodedImage;
uint32_t maxMessageSize = this->maxMessageSize(); 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); { QTextDocumentFragment fragment = QTextDocumentFragment::fromHtml(encodedImage);
ui->chatTextEdit->textCursor().insertFragment(fragment); ui->chatTextEdit->textCursor().insertFragment(fragment);
preview=true; 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. // additional Qt role only to determine the number of destinations.
if(dt == "") if(dt == "")
ownOption.icon = FilesDefs::getIconFromQtResourcePath(":/icons/svg/people2.svg"); ownOption.icon = FilesDefs::getIconFromQtResourcePath(":/icons/png/people2.png");
else if(id.isNull()) else if(id.isNull())
{ {
if (ownOption.icon.isNull()) if (ownOption.icon.isNull())