samples/video_conferencing/js/messages.js
function isMessageForCurrentDialog(userId, dialogId) {
    var result = false;
    if (dialogId == currentDialog._id || (dialogId === null && currentDialog.type == 3 && opponentId == userId)) {
        result = true;
    }
    return result;
}
function isMessageForCurrentDialog(userId, dialogId) {
    var result = false;
    if (dialogId == currentDialog._id || (dialogId === null && currentDialog.type == 3 && opponentId == userId)) {
        result = true;
    }
    return result;
}
function isMessageForCurrentDialog ( userId , dialogId ) { var result = false ; if ( dialogId == currentDialog . _id || ( dialogId === null && currentDialog . type == 3 && opponentId == userId ) ) { result = true ; } return result ; }
filter for current dialog
filter for current dialog