aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-02 20:03:24 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-02 20:03:24 +0200
commit38874aa9c8bfcf12bd1ceef013a2342da5a0eeea (patch)
treeeb4577d8ad4675b1aeb7e7f05bdf5bb540241579 /src/plugins
parent99bee0e8d2c498f6dff94a87db7540687161f3f7 (diff)
Add --no-video option to play videos with only audio
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index b8f3742..9ba1b6b 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -905,7 +905,7 @@ namespace QuickMedia {
}
static std::string block_quote(const std::string &str) {
- std::string result = "> ";
+ std::string result;
for(char c : str) {
if(c == '>') {
result += "\\>";
@@ -941,7 +941,7 @@ namespace QuickMedia {
related_to_body = "sent a file";
break;
}
- return block_quote("<" + room_data->user_info[message->user_id].user_id + "> " + std::move(related_to_body)) + "\n\n" + body;
+ return "> <" + room_data->user_info[message->user_id].user_id + "> " + block_quote(std::move(related_to_body)) + "\n\n" + body;
}
// TODO: Add formatted_body just like element does with <mx-reply><blockquote... and also support greentext with that