diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-07-13 12:01:42 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-07-13 12:01:42 +0200 |
commit | 539c688d28048afa089e3777e4af487e7cf6e9fa (patch) | |
tree | 74e2f04ca2207056563549fface050ff183bf309 | |
parent | 97df498b30d8580d4b74582a634562f996003dd0 (diff) |
Fix matrix pinned messages (and replies)
-rw-r--r-- | src/QuickMedia.cpp | 4 |
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); |