Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Apr 30, 2017
1 parent b32cb88 commit ead6cd9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/js/lounge.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,16 +507,10 @@ $(function() {
}

if (container) {
if (documentFragment.children().length > 1) {
console.log(channel.data("title"), "optimized " + documentFragment.children().length + " messages");
}

container.append(documentFragment).trigger("msg.sticky");

// Message arrived in a non active channel, trim it to 100 messages
if (activeChannelId !== target && container.find(".msg").slice(0, -100).remove().length) {
console.log(channel.data("title"), "trimmed");

channel.find(".show-more").addClass("show");

// Remove date-seperators that would otherwise
Expand Down

0 comments on commit ead6cd9

Please sign in to comment.