Geary.Account: Make new_search_query synchronous

Constructing a new query should be fast, and it no longer needs to be
done async, so remove async from the method and simplify callers.
This commit is contained in:
Michael Gratton 2020-11-05 18:56:11 +11:00 committed by Michael James Gratton
parent 9cb3a0d98c
commit 9bd2359464
5 changed files with 17 additions and 26 deletions

View file

@ -222,12 +222,11 @@ public class Mock.Account : Geary.Account,
);
}
public override async Geary.SearchQuery new_search_query(
public override Geary.SearchQuery new_search_query(
Gee.List<Geary.SearchQuery.Term> expression,
string raw,
GLib.Cancellable? cancellable
string text
) throws GLib.Error {
return new SearchQuery(expression, raw);
return new SearchQuery(expression, text);
}
public override async Gee.Collection<Geary.EmailIdentifier>?