mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Update |unlink|hide| message
Only show the restore button if messages were removed from the current room
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user