diff --git a/Linphone/core/chat/ChatCore.cpp b/Linphone/core/chat/ChatCore.cpp index d892f0a7f..ab9d79218 100644 --- a/Linphone/core/chat/ChatCore.cpp +++ b/Linphone/core/chat/ChatCore.cpp @@ -261,6 +261,10 @@ bool ChatCore::isGroupChat() const { return mIsGroupChat; } +bool ChatCore::isEncrypted() const { + return mIsEncrypted; +} + QString ChatCore::getIdentifier() const { return mIdentifier; } diff --git a/Linphone/core/chat/ChatCore.hpp b/Linphone/core/chat/ChatCore.hpp index 721e5807f..0efef7702 100644 --- a/Linphone/core/chat/ChatCore.hpp +++ b/Linphone/core/chat/ChatCore.hpp @@ -66,6 +66,8 @@ public: bool isGroupChat() const; + bool isEncrypted() const; + QString getIdentifier() const; ChatMessageGui *getLastMessage() const; diff --git a/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml b/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml index 43edced2c..6cfe7918d 100644 --- a/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml +++ b/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml @@ -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