From 925139ea3ba6634a267586db0e60af1ea60cdc6f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Oct 2020 12:16:14 +0200 Subject: Matrix: fix replying broken formatting, including reply message in body --- src/QuickMedia.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 4234d1c..9460ec6 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1331,7 +1331,6 @@ namespace QuickMedia { return false; } - static int watch_history_get_item_by_id(const Json::Value &video_history_json, const char *id) { assert(video_history_json.isArray()); @@ -3288,7 +3287,7 @@ namespace QuickMedia { else if(index == 0) return ""; else - return str.substr(0, index - 1); + return str.substr(0, index); } void Program::chat_page() { -- cgit v1.2.3