Skip to content

Commit fce9d97

Browse files
committed
(TBR)CallButton: added an unfunctional call button to the toolbar
1 parent 121e1fd commit fce9d97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/plugins/chatview/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ converse.plugins.add('converse-chatview', {
5151
'time_format': 'HH:mm',
5252
'use_system_emojis': true,
5353
'visible_toolbar_buttons': {
54-
'call': false,
54+
'call': true,
5555
'clear': true,
5656
'emoji': true,
5757
'spoiler': true

src/shared/chat/toolbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export class ChatToolbar extends CustomElement {
5454
buttons.push(html`<converse-emoji-dropdown .chatview=${chatview}></converse-emoji-dropdown>`);
5555
}
5656

57-
if (this.show_call_button) {
58-
const color = this.is_groupchat ? '--muc-toolbar-btn-color' : '--chat-toolbar-btn-color';
57+
if (!this.is_groupchat) {
58+
const color = '--chat-toolbar-btn-color';
5959
const i18n_start_call = __('Start a call');
6060
buttons.push(html`
6161
<button class="toggle-call" @click=${this.toggleCall} title="${i18n_start_call}">

0 commit comments

Comments
 (0)