diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index 1946cc5ed..36628fbe9 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -1363,7 +1363,6 @@ visible_toolbar_buttons { call: false, - clear: true, emoji: true, toggle_occupants: true } @@ -1381,8 +1380,6 @@ Allows you to show or hide buttons on the chatboxes' toolbars. console.log('Bare buddy JID is', data.model.get('jid')); // ... Third-party library code ... }); -* *clear*: - Provides a button for clearing messages from a chatbox. * *emoji*: Enables rendering of emoji and provides a toolbar button for choosing them. * *toggle_occupants*: diff --git a/src/converse-chatview.js b/src/converse-chatview.js index 8bf75d3f7..f22692d16 100644 --- a/src/converse-chatview.js +++ b/src/converse-chatview.js @@ -370,7 +370,6 @@ 'label_start_call': __('Start a call'), 'label_toggle_spoiler': label_toggle_spoiler, 'show_call_button': _converse.visible_toolbar_buttons.call, - 'show_clear_button': _converse.visible_toolbar_buttons.clear, 'show_spoiler_button': _converse.visible_toolbar_buttons.spoiler, 'use_emoji': _converse.visible_toolbar_buttons.emoji, }); diff --git a/src/templates/chatroom_toolbar.html b/src/templates/chatroom_toolbar.html index 7b886eddc..cc3b83b3d 100644 --- a/src/templates/chatroom_toolbar.html +++ b/src/templates/chatroom_toolbar.html @@ -10,7 +10,3 @@ {[ if (o.show_occupants_toggle) { ]}
  • {[ } ]} -{[ if (o.show_clear_button) { ]} -
  • -{[ } ]} - diff --git a/src/templates/toolbar.html b/src/templates/toolbar.html index 5915dbd3d..3dca527ff 100644 --- a/src/templates/toolbar.html +++ b/src/templates/toolbar.html @@ -6,6 +6,3 @@ {[ if (o.show_call_button) { ]}
  • {[ } ]} -{[ if (o.show_clear_button) { ]} -
  • -{[ } ]}