From c6f5c8d91f466fd5dce7338500de3c436bc8fe07 Mon Sep 17 00:00:00 2001
From: chylex <info@chylex.com>
Date: Tue, 11 Apr 2017 20:10:21 +0200
Subject: [PATCH] Fix notification duration not counting length of quoted
 tweets

---
 Resources/Scripts/code.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js
index a0cfabbb..4a9133d2 100644
--- a/Resources/Scripts/code.js
+++ b/Resources/Scripts/code.js
@@ -97,7 +97,9 @@
       html.find(".js-quote-detail").removeClass("is-actionable");
       
       let url = html.find("time").first().children("a").first().attr("href") || "";
-      $TD.onTweetPopup(columnTypes[column.getColumnType()] || "", html.html(), url, tweet.text.length);
+      let length = tweet.text.length+(tweet.quotedTweet ? tweet.quotedTweet.text.length : 0);
+      
+      $TD.onTweetPopup(columnTypes[column.getColumnType()] || "", html.html(), url, length);
     }
     
     if (column.model.getHasSound()){