From 46f26ea277b817feb78e5bede8d97ab2482b05d8 Mon Sep 17 00:00:00 2001 From: sirDonovan Date: Thu, 15 Jan 2015 09:22:35 -0600 Subject: [PATCH] Update |unlink|hide| message Only show the restore button if messages were removed from the current room --- js/client-chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client-chat.js b/js/client-chat.js index f3c0f021b..3b5973e51 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -998,7 +998,7 @@ $messages.find('a').contents().unwrap(); if (row[2]) { $messages.hide(); - this.$chat.append('
'); + if (this.$chat.find('.chatmessage-' + user).length) this.$chat.append('
'); } break;