Skip to content

Commit

Permalink
feat(qchat): allow to see registered users only if self registered (#227
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gounux authored Jan 15, 2025
1 parent f2df0f3 commit 4227440
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qtribu/gui/dck_qchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4227440

Please sign in to comment.