Don't die on malformed VoIP offers
This commit is contained in:
parent
711bf583ab
commit
64727cb60e
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module.exports = React.createClass({
|
|||
var senderName = event.sender ? event.sender.name : "Someone";
|
||||
// FIXME: Find a better way to determine this from the event?
|
||||
var type = "voice";
|
||||
if (event.getContent().offer &&
|
||||
if (event.getContent().offer && event.getContent().offer.sdp &&
|
||||
event.getContent().offer.sdp.indexOf('m=video') !== -1) {
|
||||
type = "video";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue