File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,21 @@ limitations under the License.
72
72
}
73
73
74
74
.mx_MessageComposer_upload ,
75
- .mx_MessageComposer_call {
75
+ .mx_MessageComposer_voicecall ,
76
+ .mx_MessageComposer_videocall {
76
77
display : table-cell;
77
78
vertical-align : middle;
78
79
padding-left : 10px ;
79
80
padding-right : 10px ;
80
81
cursor : pointer;
81
82
}
82
83
83
- .mx_MessageComposer_call {
84
+ .mx_MessageComposer_videocall {
85
+ padding-right : 10px ;
86
+ padding-top : 4px ;
87
+ }
88
+
89
+ .mx_MessageComposer_voicecall {
84
90
padding-right : 10px ;
85
91
padding-top : 4px ;
86
92
}
Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ module.exports = React.createClass({
53
53
} ) ;
54
54
} ,
55
55
56
+ onVoiceCallClick : function ( ev ) {
57
+ dis . dispatch ( {
58
+ action : 'place_call' ,
59
+ type : 'voice' ,
60
+ room_id : this . props . room . roomId
61
+ } ) ;
62
+ } ,
63
+
56
64
render : function ( ) {
57
65
var me = this . props . room . getMember ( MatrixClientPeg . get ( ) . credentials . userId ) ;
58
66
var uploadInputStyle = { display : 'none' } ;
@@ -71,7 +79,10 @@ module.exports = React.createClass({
71
79
< img src = "img/upload.png" width = "17" height = "22" />
72
80
< input type = "file" style = { uploadInputStyle } ref = "uploadInput" onChange = { this . onUploadFileSelected } />
73
81
</ div >
74
- < div className = "mx_MessageComposer_call" onClick = { this . onCallClick } >
82
+ < div className = "mx_MessageComposer_voicecall" onClick = { this . onVoiceCallClick } >
83
+ < img src = "img/voice.png" width = "16" height = "26" />
84
+ </ div >
85
+ < div className = "mx_MessageComposer_videocall" onClick = { this . onCallClick } >
75
86
< img src = "img/call.png" width = "28" height = "20" />
76
87
</ div >
77
88
</ div >
You can’t perform that action at this time.
0 commit comments