aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Matrix.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 199cba5..e53df9c 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -2280,9 +2280,8 @@ namespace QuickMedia {
PluginResult Matrix::get_previous_room_messages(RoomData *room_data, bool latest_messages) {
std::string from = room_data->get_prev_batch();
- if(latest_messages)
- from = "END";
- else if(from.empty()) {
+ if(from.empty()) {
+ #if 0
fprintf(stderr, "Info: missing previous batch for room: %s, using /sync next batch\n", room_data->id.c_str());
// TODO: When caching /sync, remember to add lock around getting next_batch!
from = get_next_batch();
@@ -2290,6 +2289,8 @@ namespace QuickMedia {
fprintf(stderr, "Error: missing next batch!\n");
return PluginResult::OK;
}
+ #endif
+ from = "END";
}
rapidjson::Document request_data(rapidjson::kObjectType);