aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Matrix.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-07-20 23:34:30 +0200
committerdec05eba <dec05eba@protonmail.com>2021-07-20 23:34:30 +0200
commit3c16cb376669e4ae500d22529b40112c761088c0 (patch)
tree7573fbff452e16741b693700ad5068662043c31a /src/plugins/Matrix.cpp
parent6900159a36ed365e628ecbcbad892a91ccd68d9e (diff)
Fix cursor not autohiding sometimes because start of video is not always detected properly
Diffstat (limited to 'src/plugins/Matrix.cpp')
-rw-r--r--src/plugins/Matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 7439bf6..4d00949 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -3468,7 +3468,7 @@ namespace QuickMedia {
}
if((int)file_analyzer.get_file_size() > upload_limit) {
- err_msg = "File is too large! max upload size on your homeserver is " + std::to_string(upload_limit) + " bytes, the file you tried to upload is " + std::to_string(file_analyzer.get_file_size()) + " bytes";
+ err_msg = "File is too large! max upload size on your homeserver is " + std::to_string((double)upload_limit / 1024.0 / 1024.0) + " mb, the file you tried to upload is " + std::to_string((double)file_analyzer.get_file_size() / 1024.0 / 1024.0) + " mb";
return PluginResult::ERR;
}