Skip to content

Commit

Permalink
Remove courier:searchRefresh angular event from searchPoll. (#20850) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored Jul 16, 2018
1 parent 9157cf7 commit 5d1ea11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/public/courier/search_poll/search_poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import '../../promises';
import { searchRequestQueue } from '../search_request_queue';
import { FetchSoonProvider } from '../fetch';

export function SearchPollProvider(Private, Promise, $rootScope) {
export function SearchPollProvider(Private, Promise) {
const fetchSoon = Private(FetchSoonProvider);

class SearchPoll {
Expand Down Expand Up @@ -81,7 +81,6 @@ export function SearchPollProvider(Private, Promise, $rootScope) {
// We use resolve() here instead of try() because the latter won't trigger a $digest
// when the promise resolves.
this._searchPromise = Promise.resolve().then(() => {
$rootScope.$broadcast('courier:searchRefresh');
const requests = searchRequestQueue.getInactive();

// The promise returned from fetchSearchRequests() only resolves when the requests complete.
Expand Down

0 comments on commit 5d1ea11

Please sign in to comment.