Mailspring/app/internal_packages/contacts/lib/GoogleSupport.ts
Ben Gotow 65435390ad Requesting unapproved read-write Google Contacts API results in “App Not Verified”
We will have to make Google support read-only until the additional oauth scope is approved…
2019-10-14 01:04:03 -05:00

15 lines
637 B
TypeScript

import { AccountStore } from 'mailspring-exports';
import { remote } from 'electron';
export const showGPeopleReadonlyNotice = (accountId: string) => {
const acct = AccountStore.accountForId(accountId);
if (acct && acct.provider === 'gmail') {
remote.dialog.showMessageBox({
message: 'Coming Soon for Google Accounts',
detail:
"We've added support for creating, updating and deleting contacts in Google accounts, but Google is still reviewing Mailspring's use of the Google People API so we're unable to sync these changes back to their servers. Stay tuned!",
});
return true;
}
return false;
};