<commit_before>scrollChatToBottom = function() {
    $("#roomContainer").scrollTop(100000);
};

scrollToMessage = function(messageId){
    var message = $("#"+messageId);
    if(message){
        var container = $("#roomContainer");
        container.scrollTop(container.scrollTop() + message.offset().top);
    }
};

setCurrentRoom = function(roomId){
    Session.set('currentRoom',roomId);
}<commit_msg>Call setSeen on room set closes #72<commit_after>scrollChatToBottom = function() {
    $("#roomContainer").scrollTop(100000);
};

scrollToMessage = function(messageId){
    var message = $("#"+messageId);
    if(message){
        var container = $("#roomContainer");
        container.scrollTop(container.scrollTop() + message.offset().top);
    }
};

setCurrentRoom = function(roomId){
    Session.set('currentRoom',roomId);
    Meteor.call('setSeen',roomId);
}
{'fraction_non_alphanumeric': 0.1707035755478662, 'fraction_numerical': 0.016147635524798153, 'mean_word_length': 4.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6055962', 'n_tokens_mistral': 265, 'n_tokens_neox': 252, 'n_words': 41}