Add unsupported suffix on Ongoing conf notification if conf calls are unsupported in the browser

pull/314/head
Kegan Dougal 2015-11-02 18:01:20 +00:00
parent e869814f2d
commit 6e63153d83
1 changed files with 5 additions and 1 deletions

View File

@ -230,9 +230,13 @@ module.exports = React.createClass({
var conferenceCallNotification = null; var conferenceCallNotification = null;
if (this.state.displayConfCallNotification) { if (this.state.displayConfCallNotification) {
var supportedText;
if (!MatrixClientPeg.get().supportsVoip()) {
supportedText = " (unsupported)";
}
conferenceCallNotification = ( conferenceCallNotification = (
<div className="mx_RoomView_ongoingConfCallNotification" onClick={this.onConferenceNotificationClick}> <div className="mx_RoomView_ongoingConfCallNotification" onClick={this.onConferenceNotificationClick}>
Ongoing conference call Ongoing conference call {supportedText}
</div> </div>
); );
} }