MAM: Fix latest range not being stored in db if it contained a duplicate
This commit is contained in:
parent
6c5ec41beb
commit
202ef664fb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue