MAM: Fix latest range not being stored in db if it contained a duplicate

This commit is contained in:
fiaxh 2023-01-16 17:24:58 +01:00 committed by Xavier Del Campo Romero
parent 6c5ec41beb
commit 202ef664fb
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 0 additions and 6 deletions

View File

@ -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;
}