diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-19 17:57:18 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-19 17:57:18 +0100 |
commit | 974d46dbf198ad7d8cd55bb1827f0a74105375de (patch) | |
tree | 38ac7b5a8b6befcb1940c9aee8a593fab32f8e3d /src/plugins | |
parent | d5da6e47e14831b865d418faa32f32df4de5af42 (diff) |
Matrix: remove event cache on login
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index b0c83cc..b176824 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -2958,6 +2958,10 @@ namespace QuickMedia { remove(matrix_sync_data_path.data.c_str()); Path filter_cache_path = get_storage_dir().join("matrix").join("filter"); remove(filter_cache_path.data.c_str()); + for_files_in_dir(get_cache_dir().join("matrix").join("events"), [](const std::filesystem::path &filepath) { + remove(filepath.c_str()); + return true; + }); if(!json_root.IsObject()) { err_msg = "Failed to parse matrix login response"; |