Mailspring/packages/client-app/internal_packages/contact-rankings/lib/main.es6
Mark Hahnenberg 60e6113f87 [client-sync] Implement the /contacts/rankings endpoint
Summary:
Prior to Nylas Mail, the Nylas Cloud API provided an endpoint that
returned rankings for contacts which it computed based on how frequently
and how recently a user sent mail to a recipient. This diff reimplements
that functionality in Nylas Mail. This should improve contact
auto-complete when composing emails to frequently contacted recipients.

Test Plan: Run locally, verify that frequent contacts are suggested earlier

Reviewers: spang, evan, juan

Reviewed By: evan, juan

Maniphest Tasks: T7948

Differential Revision: https://phab.nylas.com/D4253
2017-03-28 10:51:24 -07:00

11 lines
199 B
JavaScript

import ContactRankingsCache from './contact-rankings-cache'
export function activate() {
ContactRankingsCache.activate();
}
export function deactivate() {
ContactRankingsCache.deactivate();
}