aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-01 12:16:14 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-01 12:16:14 +0200
commit925139ea3ba6634a267586db0e60af1ea60cdc6f (patch)
tree50e1c0dd5061642f3a7ce3ebece524eb24666c3f /src/QuickMedia.cpp
parenta1ff5cb86eaa32e6e4ee194e87d8036c74be8dc9 (diff)
Matrix: fix replying broken formatting, including reply message in body
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 1 insertions, 2 deletions
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() {