From f9f0677da3e3611a466010a0bbd6ed0954fc7f00 Mon Sep 17 00:00:00 2001
From: chylex <info@chylex.com>
Date: Sun, 17 Apr 2016 17:41:46 +0200
Subject: [PATCH] Fix broken pop-up notifications

---
 Resources/code.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Resources/code.js b/Resources/code.js
index 9754278e..dce12ea1 100644
--- a/Resources/code.js
+++ b/Resources/code.js
@@ -127,16 +127,16 @@
     var html = $(tweet.outerHTML);
     var body = html.find(".tweet-body").first();
     
-    if (html.find(".icon-reply").length > 0){
-      return; // ignore sent messages
-    }
-    
     body.children("div.js-quote-detail").each(function(){
       $(this).html("(quoted tweet)");
     });
     
     body.children().not("p,span,div.js-quote-detail").remove();
     
+    if (html.find(".icon-reply").length > 0){
+      return; // ignore sent messages
+    }
+    
     var characters = html.find(".js-tweet-text:first").text().length;
     if (characters == 0)return;