Update |unlink|hide| message

Only show the restore button if messages were removed from the current
room
This commit is contained in:
sirDonovan
2015-01-15 09:22:35 -06:00
parent 067c6c5969
commit 46f26ea277

View File

@@ -998,7 +998,7 @@
$messages.find('a').contents().unwrap();
if (row[2]) {
$messages.hide();
this.$chat.append('<div class="chatmessage-' + user + '"><button name="revealMessages" value="' + user + '"><small>Some messages were hidden, click here to restore them.</small></button></div>');
if (this.$chat.find('.chatmessage-' + user).length) this.$chat.append('<div class="chatmessage-' + user + '"><button name="revealMessages" value="' + user + '"><small>Some messages were hidden, click here to restore them.</small></button></div>');
}
break;