fix #LINQT-1774 forgot to set visible property en e2e encrypted header
This commit is contained in:
parent
481f9500c6
commit
c766fb0237
3 changed files with 7 additions and 0 deletions
|
|
@ -261,6 +261,10 @@ bool ChatCore::isGroupChat() const {
|
||||||
return mIsGroupChat;
|
return mIsGroupChat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ChatCore::isEncrypted() const {
|
||||||
|
return mIsEncrypted;
|
||||||
|
}
|
||||||
|
|
||||||
QString ChatCore::getIdentifier() const {
|
QString ChatCore::getIdentifier() const {
|
||||||
return mIdentifier;
|
return mIdentifier;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ public:
|
||||||
|
|
||||||
bool isGroupChat() const;
|
bool isGroupChat() const;
|
||||||
|
|
||||||
|
bool isEncrypted() const;
|
||||||
|
|
||||||
QString getIdentifier() const;
|
QString getIdentifier() const;
|
||||||
|
|
||||||
ChatMessageGui *getLastMessage() const;
|
ChatMessageGui *getLastMessage() const;
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ ListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
header: Item {
|
header: Item {
|
||||||
|
visible: mainItem.chat && mainItem.chat.core.isEncrypted
|
||||||
height: headerMessage.height + Math.round(50 * DefaultStyle.dp)
|
height: headerMessage.height + Math.round(50 * DefaultStyle.dp)
|
||||||
width: headerMessage.width
|
width: headerMessage.width
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue