mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
65435390ad
We will have to make Google support read-only until the additional oauth scope is approved…
15 lines
637 B
TypeScript
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;
|
|
};
|