Skip to content

Commit

Permalink
revert back code to avoid merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
PawBud committed Jun 20, 2022
1 parent fdc537d commit 0c6b78e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/chatview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ converse.plugins.add('converse-chatview', {
'time_format': 'HH:mm',
'use_system_emojis': true,
'visible_toolbar_buttons': {
'call': true,
'call': false,
'clear': true,
'emoji': true,
'spoiler': true
Expand Down
10 changes: 10 additions & 0 deletions src/shared/chat/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ export class ChatToolbar extends CustomElement {
buttons.push(html`<converse-emoji-dropdown .chatview=${chatview}></converse-emoji-dropdown>`);
}

if (this.show_call_button) {
const color = this.is_groupchat ? '--muc-toolbar-btn-color' : '--chat-toolbar-btn-color';
const i18n_start_call = __('Start a call');
buttons.push(html`
<button class="toggle-call" @click=${this.toggleCall} title="${i18n_start_call}">
<converse-icon color="var(${color})" class="fa fa-phone" size="1em"></converse-icon>
</button>`
);
}

const message_limit = api.settings.get('message_limit');
if (message_limit) {
buttons.push(html`
Expand Down

0 comments on commit 0c6b78e

Please sign in to comment.