Fixed loading saved search

pull/215/head
M66B 1 year ago
parent 374f121d5f
commit 4bb1284c52

@ -1381,6 +1381,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
public static SearchCriteria fromJsonData(JSONObject json) throws JSONException { public static SearchCriteria fromJsonData(JSONObject json) throws JSONException {
SearchCriteria criteria = new SearchCriteria(); SearchCriteria criteria = new SearchCriteria();
if (!json.isNull("query"))
criteria.query = json.optString("query"); criteria.query = json.optString("query");
criteria.fts = json.optBoolean("fts"); criteria.fts = json.optBoolean("fts");
criteria.in_senders = json.optBoolean("in_senders"); criteria.in_senders = json.optBoolean("in_senders");

Loading…
Cancel
Save