[network/ruqola] src/widgets/dialogs: Generate menu when it's not me

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 9af19c9745a1da7340248af150a8569aba720f59 by Laurent Montel.
Committed on 20/07/2026 at 11:19.
Pushed by mlaurent into branch 'master'.

Generate menu when it's not me

M  +5    -3    src/widgets/dialogs/directchannelinfowidget.cpp

https://invent.kde.org/network/ruqola/-/commit/9af19c9745a1da7340248af150a8569aba720f59

diff --git a/src/widgets/dialogs/directchannelinfowidget.cpp b/src/widgets/dialogs/directchannelinfowidget.cpp
index 34bc2a02ed..06768f1b00 100644
--- a/src/widgets/dialogs/directchannelinfowidget.cpp
+++ b/src/widgets/dialogs/directchannelinfowidget.cpp
@@ -220,9 +220,11 @@ void DirectChannelInfoWidget::setUser(const User &user)
         label->setFont(f);
         mFormLayout->addRow(label, emailsInfoLabel);
     }
-    // mDirectChannelActionWidget->setVisible(user.userId() != mRocketChatAccount->userId());
-    mDirectChannelActionWidget->setVisible(false); // TODO
-    mDirectChannelActionWidget->generateRoomMenu(user);
+    const bool isNotMe = user.userId() != mRocketChatAccount->userId();
+    mDirectChannelActionWidget->setVisible(isNotMe);
+    if (isNotMe) {
+        mDirectChannelActionWidget->generateRoomMenu(user);
+    }
 }
 
 DirectChannelActionWidget::DirectChannelActionWidget(RocketChatAccount *account, QWidget *parent)
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.