function restoreAppbar(){

    // New: Update right app bar with current channel data after having created a new channel
    var star='';
    if (currentChannel.starred==true){
        var star='<i class="fas fa-star" onclick="star()"></i>';
    } else {
    var star='<i class="far fa-star" onclick="star()"></i>';
    }
    $("h1:last").replaceWith('<h1 id = "appbar" class="md-whiteframe-4dp"> <span id="channel-name">' + currentChannel.name + ' </span> <small id="channel-location">by <strong>' + currentChannel.createdBy + '</strong></small>' + star + '</i></h1>');
    $("button:last").replaceWith('<button class="accented" id="sendButton" onclick="sendMessage()"><i class="fas fa-arrow-right"></i></button>');  
    operator = 'old';
}
// New: Update right app bar and message send button with current channel data and original arrow send button after having created a new channel
Update right app bar and message send button with current channel data and original arrow send button after having created a new channel
Update right app bar and message send button with current channel data and original arrow send button after having created a new channel
function restoreAppbar(){
    var star='';
    if (currentChannel.starred==true){
        var star='<i class="fas fa-star" onclick="star()"></i>';
    } else {
    var star='<i class="far fa-star" onclick="star()"></i>';
    }
    $("h1:last").replaceWith('<h1 id = "appbar" class="md-whiteframe-4dp"> <span id="channel-name">' + currentChannel.name + ' </span> <small id="channel-location">by <strong>' + currentChannel.createdBy + '</strong></small>' + star + '</i></h1>');
    $("button:last").replaceWith('<button class="accented" id="sendButton" onclick="sendMessage()"><i class="fas fa-arrow-right"></i></button>');  
    operator = 'old';
}
function restoreAppbar ( ) { var star = '' ; if ( currentChannel . starred == true ) { var star = '<i class="fas fa-star" onclick="star()"></i>' ; } else { var star = '<i class="far fa-star" onclick="star()"></i>' ; } $ ( "h1:last" ) . replaceWith ( '<h1 id = "appbar" class="md-whiteframe-4dp"> <span id="channel-name">' + currentChannel . name + ' </span> <small id="channel-location">by <strong>' + currentChannel . createdBy + '</strong></small>' + star + '</i></h1>' ) ; $ ( "button:last" ) . replaceWith ( '<button class="accented" id="sendButton" onclick="sendMessage()"><i class="fas fa-arrow-right"></i></button>' ) ; operator = 'old' ; }
New: Update right app bar and message send button with current channel data and original arrow send button after having created a new channel
New : Update right app bar and message send button with current channel data and original arrow send button after having created a new channel
// New: Update right app bar with current channel data after having created a new channel