If attribute null, dont collapse

This commit is contained in:
Jeremy Zhang 2017-10-20 06:59:06 +00:00
parent 2b68179a82
commit a571e58bbc

View File

@ -988,7 +988,7 @@
for (var i = 1; i < allMessages.length; i++) { for (var i = 1; i < allMessages.length; i++) {
var last = $(allMessages[i - 1]); var last = $(allMessages[i - 1]);
var current = $(allMessages[i]); var current = $(allMessages[i]);
if (last.attr("discord_userid") == current.attr("discord_userid")) { if (last.attr("discord_userid") == current.attr("discord_userid") && current.attr("discord_userid")) {
current.addClass("collapsed"); current.addClass("collapsed");
} else { } else {
current.removeClass("collapsed"); current.removeClass("collapsed");