Touched hours

pull/215/head
M66B 8 months ago
parent 8a4e6aa939
commit 497ce2fda6

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

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

Loading…
Cancel
Save