Skip to content

Commit 4227440

Browse files
authored
feat(qchat): allow to see registered users only if self registered (#227)
1 parent f2df0f3 commit 4227440

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

qtribu/gui/dck_qchat.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,15 @@ def on_list_users_button_clicked(self) -> None:
709709
"""
710710
Action called when the list users button is clicked
711711
"""
712+
if self.settings.qchat_incognito_mode:
713+
QMessageBox.warning(
714+
self,
715+
self.tr("Registered users"),
716+
self.tr(
717+
"You're using incognito mode. Please disable it to see registered users."
718+
),
719+
)
720+
return
712721
try:
713722
users = self.qchat_client.get_registered_users(self.current_room)
714723
QMessageBox.information(

0 commit comments

Comments
 (0)