From b59288a87357f98653ace1707e13f33d9320ef0f Mon Sep 17 00:00:00 2001 From: gounux Date: Sun, 12 Jan 2025 08:38:57 +0100 Subject: [PATCH] feat(qchat): allow to see registered users only if self registered --- qtribu/gui/dck_qchat.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qtribu/gui/dck_qchat.py b/qtribu/gui/dck_qchat.py index c06e08e9..76aa3041 100644 --- a/qtribu/gui/dck_qchat.py +++ b/qtribu/gui/dck_qchat.py @@ -709,6 +709,15 @@ def on_list_users_button_clicked(self) -> None: """ Action called when the list users button is clicked """ + if self.settings.qchat_incognito_mode: + QMessageBox.warning( + self, + self.tr("Registered users"), + self.tr( + "You're using incognito mode. Please disable it to see registered users." + ), + ) + return try: users = self.qchat_client.get_registered_users(self.current_room) QMessageBox.information(