fix(signatures): place reply/forward signature above the quote by default
Publish Docker Image / prepare (push) Successful in 1s
Publish Docker Image / build (linux/amd64, ubuntu-latest) (push) Failing after 18s
Publish Docker Image / build (linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Publish Docker Image / merge (push) Canceled after 0s
Publish Docker Image / prepare (push) Successful in 1s
Publish Docker Image / build (linux/amd64, ubuntu-latest) (push) Failing after 18s
Publish Docker Image / build (linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Publish Docker Image / merge (push) Canceled after 0s
This commit is contained in:
@@ -490,7 +490,7 @@ const DEFAULT_SETTINGS = {
|
|||||||
rtlEditingSupport: false,
|
rtlEditingSupport: false,
|
||||||
subAddressDelimiter: DEFAULT_SUB_ADDRESS_DELIMITER,
|
subAddressDelimiter: DEFAULT_SUB_ADDRESS_DELIMITER,
|
||||||
sendDelaySeconds: 0 as SendDelaySeconds,
|
sendDelaySeconds: 0 as SendDelaySeconds,
|
||||||
signaturePosition: 'below_quote' as SignaturePosition,
|
signaturePosition: 'above_quote' as SignaturePosition,
|
||||||
signatureSeparatorEnabled: true,
|
signatureSeparatorEnabled: true,
|
||||||
requestReadReceiptDefault: false,
|
requestReadReceiptDefault: false,
|
||||||
readReceiptResponse: 'ask' as ReadReceiptResponse,
|
readReceiptResponse: 'ask' as ReadReceiptResponse,
|
||||||
@@ -998,7 +998,7 @@ export const useSettingsStore = create<SettingsState>()(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: 'settings-storage',
|
name: 'settings-storage',
|
||||||
version: 7,
|
version: 8,
|
||||||
migrate: migrateSettings,
|
migrate: migrateSettings,
|
||||||
onRehydrateStorage: () => {
|
onRehydrateStorage: () => {
|
||||||
return (state) => {
|
return (state) => {
|
||||||
@@ -1085,6 +1085,12 @@ export function migrateSettings(persisted: unknown, version: number): SettingsSt
|
|||||||
if (version < 6 || !isPlainRecord(state.preferredIdentityIds)) {
|
if (version < 6 || !isPlainRecord(state.preferredIdentityIds)) {
|
||||||
state.preferredIdentityIds = {};
|
state.preferredIdentityIds = {};
|
||||||
}
|
}
|
||||||
|
// v8: reply/forward signatures now sit above the quoted message by
|
||||||
|
// default (previously below). Migrate any persisted value so existing
|
||||||
|
// accounts pick up the new default.
|
||||||
|
if (version < 8) {
|
||||||
|
state.signaturePosition = 'above_quote';
|
||||||
|
}
|
||||||
return state as unknown as SettingsState;
|
return state as unknown as SettingsState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user