aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-07-13 12:01:42 +0200
committerdec05eba <dec05eba@protonmail.com>2021-07-13 12:01:42 +0200
commit539c688d28048afa089e3777e4af487e7cf6e9fa (patch)
tree74e2f04ca2207056563549fface050ff183bf309
parent97df498b30d8580d4b74582a634562f996003dd0 (diff)
Fix matrix pinned messages (and replies)
-rw-r--r--src/QuickMedia.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 1f468d9..252bb19 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1241,6 +1241,10 @@ namespace QuickMedia {
no_video = true;
} else if(strcmp(plugin_name, "matrix") == 0) {
assert(!matrix);
+ if(create_directory_recursive(get_cache_dir().join("matrix").join("events")) != 0) {
+ show_notification("QuickMedia", "Failed to create events cache directory", Urgency::CRITICAL);
+ abort();
+ }
matrix = new Matrix();
} else {
assert(false);