[network/ruqola] src/widgets/room: Fix visible action

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit bf974bd85831a243ee0883ffbd2a2dcb8a439437 by Laurent Montel.
Committed on 05/08/2026 at 17:46.
Pushed by mlaurent into branch 'master'.

Fix visible action

M  +2    -3    src/widgets/room/channelactionpopupmenu.cpp

https://invent.kde.org/network/ruqola/-/commit/bf974bd85831a243ee0883ffbd2a2dcb8a439437

diff --git a/src/widgets/room/channelactionpopupmenu.cpp b/src/widgets/room/channelactionpopupmenu.cpp
index 6d825de874..5fa2db066b 100644
--- a/src/widgets/room/channelactionpopupmenu.cpp
+++ b/src/widgets/room/channelactionpopupmenu.cpp
@@ -213,9 +213,8 @@ void ChannelActionPopupMenu::slotUpdateMenu()
         mOffTheRecordMessages->setVisible(false && mCurrentRocketChatAccount->ruqolaServerConfig()->otrEnabled()
                                           && mRoom->channelType() == Room::RoomType::Direct);
 
-        // FIXME Disable for the moment
-        // TODO
-        mEncryptMessages->setVisible(false);
+        mEncryptMessages->setVisible(mRoom->encryptedEnabled()); // Hide when not private channels or not direct
+        mEncryptMessages->setChecked(mRoom->encrypted());
 
         const bool hasPermissionToBan = mRoom && mRoom->hasPermission(u"ban-user"_s)
             && (mRoom->channelType() == Room::RoomType::Channel || mRoom->channelType() == Room::RoomType::Private);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.