File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ converse.plugins.add('converse-chatview', {
51
51
'time_format' : 'HH:mm' ,
52
52
'use_system_emojis' : true ,
53
53
'visible_toolbar_buttons' : {
54
- 'call' : true ,
54
+ 'call' : false ,
55
55
'clear' : true ,
56
56
'emoji' : true ,
57
57
'spoiler' : true
Original file line number Diff line number Diff line change @@ -54,6 +54,16 @@ export class ChatToolbar extends CustomElement {
54
54
buttons . push ( html `< converse-emoji-dropdown .chatview =${ chatview } > </ converse-emoji-dropdown > ` ) ;
55
55
}
56
56
57
+ if ( this . show_call_button ) {
58
+ const color = this . is_groupchat ? '--muc-toolbar-btn-color' : '--chat-toolbar-btn-color' ;
59
+ const i18n_start_call = __ ( 'Start a call' ) ;
60
+ buttons . push ( html `
61
+ < button class ="toggle-call " @click =${ this . toggleCall } title ="${ i18n_start_call } ">
62
+ < converse-icon color ="var(${ color } ) " class ="fa fa-phone " size ="1em "> </ converse-icon >
63
+ </ button > `
64
+ ) ;
65
+ }
66
+
57
67
const message_limit = api . settings . get ( 'message_limit' ) ;
58
68
if ( message_limit ) {
59
69
buttons . push ( html `
You can’t perform that action at this time.
0 commit comments