Commit ce7dae75 authored by Yuki's avatar Yuki

Add a config setting to hide device icons

parent 2e50ac52
Pipeline #3511 passed with stages
in 2 minutes and 47 seconds
......@@ -487,7 +487,7 @@ class ChatControl(ChatControlBase):
def _on_update_client_info(self, event):
contact = app.contacts.get_contact(
self.account, event.jid, event.resource)
if contact is None:
if contact is None or not app.config.get('show_device_icons'):
......@@ -245,6 +245,7 @@ class Config:
_('Controls the window where new messages are placed.\n\'always\' - All messages are sent to a single window.\n\'always_with_roster\' - Like \'always\' but the messages are in a single window along with the roster.\n\'never\' - All messages get their own window.\n\'peracct\' - Messages for each account are sent to a specific window.\n\'pertype\' - Each message type (e.g. chats vs. groupchats) is sent to a specific window.')],
'show_roster_on_startup':[opt_str, 'always', _('Show roster on startup.\n\'always\' - Always show roster.\n\'never\' - Never show roster.\n\'last_state\' - Restore the last state roster.')],
'show_avatar_in_chat': [opt_bool, True, _('If False, you will no longer see the avatar in the chat window.')],
'show_device_icons': [opt_bool, True, _('If false, you will no longer see any device indicators/icons.')],
'escape_key_closes': [opt_bool, True, _('If true, pressing the escape key closes a tab/window.')],
'hide_groupchat_banner': [opt_bool, False, _('Hides the banner in a group chat window')],
'hide_chat_banner': [opt_bool, False, _('Hides the banner in two persons chat window')],
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment