diff options
-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()); |