From 202ef664fb6fd86f2ddea57a588b64e130e481d1 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 16 Jan 2023 17:24:58 +0100 Subject: MAM: Fix latest range not being stored in db if it contained a duplicate --- libdino/src/service/history_sync.vala | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libdino/src') diff --git a/libdino/src/service/history_sync.vala b/libdino/src/service/history_sync.vala index 830fd513..ae705d17 100644 --- a/libdino/src/service/history_sync.vala +++ b/libdino/src/service/history_sync.vala @@ -206,13 +206,7 @@ public class Dino.HistorySync { PageRequestResult page_result = yield get_mam_page(account, query_params, null); debug("[%s | %s] Latest page result: %s", account.bare_jid.to_string(), mam_server.to_string(), page_result.page_result.to_string()); - if (page_result.page_result == PageResult.Duplicate) { - // No new messages - return null; - } - if (page_result.page_result == PageResult.Error) { - debug("[%s | %s] Failed fetching latest page %s", mam_server.to_string(), mam_server.to_string(), page_result.page_result.to_string()); return null; } -- cgit v1.2.3