diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-20 19:43:42 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-20 19:43:42 +0100 |
commit | 9d36cfb599490888fa54110c796e14b542c402df (patch) | |
tree | 7091064aa8f09062037d90f47ac3d5399e276cb4 | |
parent | 027f95c5750b8db3a648e4ff7026bf3a7efc2bd6 (diff) |
bla
-rw-r--r-- | src/plugins/Matrix.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index b176824..1d0e1df 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -2769,7 +2769,11 @@ namespace QuickMedia { return true; }, get_cache_dir().join("matrix").join("events").join(base64_url::encode(event_id))); - if(download_result != DownloadResult::OK) return nullptr; + if(download_result != DownloadResult::OK) { + fprintf(stderr, "Failed to get message by id %s, error: %s\n", event_id.c_str(), response.c_str()); + room->fetched_messages_by_event_id.insert(std::make_pair(event_id, nullptr)); + return nullptr; + } rapidjson::Document json_root; rapidjson::ParseResult parse_result = json_root.Parse(response.c_str(), response.size()); |