mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-27 15:04:31 +08:00
Remove the “Twitter image” option in Prefs > Signature, it does not work with X
This commit is contained in:
parent
a1998fcc94
commit
3d1a513c4b
2 changed files with 2 additions and 10 deletions
|
@ -49,7 +49,7 @@ export const DataShape = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'instagramURL',
|
key: 'instagramURL',
|
||||||
label: localized('Instagram URL')
|
label: localized('Instagram URL'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'tintColor',
|
key: 'tintColor',
|
||||||
|
@ -95,12 +95,6 @@ export const ResolveSignatureData = data => {
|
||||||
data.photoURL = `https://www.gravatar.com/avatar/${hash}/?s=160&msw=160&msh=160`;
|
data.photoURL = `https://www.gravatar.com/avatar/${hash}/?s=160&msw=160&msh=160`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.photoURL === 'twitter') {
|
|
||||||
data.photoURL = `https://twitter.com/${
|
|
||||||
data.twitterHandle
|
|
||||||
}/profile_image?size=original&msw=128&msh=128`;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.photoURL === 'company') {
|
if (data.photoURL === 'company') {
|
||||||
const domain =
|
const domain =
|
||||||
(data.websiteURL && URL.parse(data.websiteURL).hostname) ||
|
(data.websiteURL && URL.parse(data.websiteURL).hostname) ||
|
||||||
|
@ -118,7 +112,6 @@ export const ResolveSignatureData = data => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,7 @@ export default class SignaturePhotoPicker extends React.Component<
|
||||||
const { isDropping, isUploading } = this.state;
|
const { isDropping, isUploading } = this.state;
|
||||||
|
|
||||||
let source = data.photoURL || '';
|
let source = data.photoURL || '';
|
||||||
if (!['gravatar', 'twitter', 'company', ''].includes(source)) {
|
if (!['gravatar', 'company', ''].includes(source)) {
|
||||||
source = 'custom';
|
source = 'custom';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +203,6 @@ export default class SignaturePhotoPicker extends React.Component<
|
||||||
>
|
>
|
||||||
<option value="">{localized('None')}</option>
|
<option value="">{localized('None')}</option>
|
||||||
<option value="gravatar">{localized('Gravatar Profile Photo')}</option>
|
<option value="gravatar">{localized('Gravatar Profile Photo')}</option>
|
||||||
<option value="twitter">{localized('Twitter Profile Image')}</option>
|
|
||||||
<option value="company">{localized('Company / Domain Logo')}</option>
|
<option value="company">{localized('Company / Domain Logo')}</option>
|
||||||
<option disabled>──────────</option>
|
<option disabled>──────────</option>
|
||||||
<option value="custom">{localized('Custom Image…')}</option>
|
<option value="custom">{localized('Custom Image…')}</option>
|
||||||
|
|
Loading…
Add table
Reference in a new issue