fix #LINQT-1774 forgot to set visible property en e2e encrypted header

This commit is contained in:
Gaelle Braud 2025-05-21 12:21:17 +02:00
parent 481f9500c6
commit c766fb0237
3 changed files with 7 additions and 0 deletions

View file

@ -261,6 +261,10 @@ bool ChatCore::isGroupChat() const {
return mIsGroupChat;
}
bool ChatCore::isEncrypted() const {
return mIsEncrypted;
}
QString ChatCore::getIdentifier() const {
return mIdentifier;
}

View file

@ -66,6 +66,8 @@ public:
bool isGroupChat() const;
bool isEncrypted() const;
QString getIdentifier() const;
ChatMessageGui *getLastMessage() const;

View file

@ -59,6 +59,7 @@ ListView {
}
header: Item {
visible: mainItem.chat && mainItem.chat.core.isEncrypted
height: headerMessage.height + Math.round(50 * DefaultStyle.dp)
width: headerMessage.width
anchors.horizontalCenter: parent.horizontalCenter