Touched hours

This commit is contained in:
M66B 2024-05-08 21:01:23 +02:00
parent 8a4e6aa939
commit 497ce2fda6
2 changed files with 3 additions and 3 deletions

View File

@ -358,7 +358,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
criteria.with_size,
criteria.after,
criteria.before,
criteria.touched == null ? null : new Date().getTime() - criteria.touched,
criteria.touched == null ? null : new Date().getTime() - criteria.touched * 3600 * 1000L,
SEARCH_LIMIT_DEVICE, state.offset);
EntityLog.log(context, "Boundary device" +
" account=" + account +
@ -819,7 +819,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
}
if (criteria.touched != null) {
if (message.last_attempt == null || message.last_attempt < new Date().getTime() - criteria.touched)
if (message.last_attempt == null || message.last_attempt < new Date().getTime() - criteria.touched * 3600 * 1000L)
return false;
}

View File

@ -65,7 +65,7 @@ import java.util.List;
public class FragmentDialogSearch extends FragmentDialogBase {
private static final int MAX_SUGGESTIONS = 3;
private static final int RECENTLY_TOUCHED = 3600 * 1000; // milliseconds
private static final int RECENTLY_TOUCHED = 7 * 24; // hours
@NonNull
@Override