diff --git a/core/rosteritem.cpp b/core/rosteritem.cpp index a8d48a4..b9801d9 100644 --- a/core/rosteritem.cpp +++ b/core/rosteritem.cpp @@ -423,9 +423,9 @@ Shared::VCard Core::RosterItem::handleResponseVCard(const QXmppVCardIq& card, co } else { if (!hasAvatar || !info.autogenerated) { setAutoGeneratedAvatar(resource); - type = Shared::Avatar::autocreated; - path = avatarPath(resource) + ".png"; } + type = Shared::Avatar::autocreated; + path = avatarPath(resource) + ".png"; } diff --git a/ui/utils/message.cpp b/ui/utils/message.cpp index 479a3a0..1725a9b 100644 --- a/ui/utils/message.cpp +++ b/ui/utils/message.cpp @@ -27,9 +27,9 @@ const QRegularExpression urlReg("(?removeWidget(fileComment); fileComment->hide(); fileComment->setWordWrap(false); + commentAdded = false; } }