fix linting
This commit is contained in:
@@ -842,11 +842,9 @@ export default class ContactQRScanShow extends Vue {
|
|||||||
text: "Do you want to register them?",
|
text: "Do you want to register them?",
|
||||||
onCancel: async (stopAsking?: boolean) => {
|
onCancel: async (stopAsking?: boolean) => {
|
||||||
if (stopAsking) {
|
if (stopAsking) {
|
||||||
const platformService = PlatformServiceFactory.getInstance();
|
await databaseUtil.updateAccountSettings(this.activeDid, {
|
||||||
await platformService.dbExec(
|
hideRegisterPromptOnNewContact: stopAsking,
|
||||||
"UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE key = ?",
|
});
|
||||||
[stopAsking, MASTER_SETTINGS_KEY],
|
|
||||||
);
|
|
||||||
if (USE_DEXIE_DB) {
|
if (USE_DEXIE_DB) {
|
||||||
await db.settings.update(MASTER_SETTINGS_KEY, {
|
await db.settings.update(MASTER_SETTINGS_KEY, {
|
||||||
hideRegisterPromptOnNewContact: stopAsking,
|
hideRegisterPromptOnNewContact: stopAsking,
|
||||||
@@ -857,11 +855,9 @@ export default class ContactQRScanShow extends Vue {
|
|||||||
},
|
},
|
||||||
onNo: async (stopAsking?: boolean) => {
|
onNo: async (stopAsking?: boolean) => {
|
||||||
if (stopAsking) {
|
if (stopAsking) {
|
||||||
const platformService = PlatformServiceFactory.getInstance();
|
await databaseUtil.updateAccountSettings(this.activeDid, {
|
||||||
await platformService.dbExec(
|
hideRegisterPromptOnNewContact: stopAsking,
|
||||||
"UPDATE settings SET hideRegisterPromptOnNewContact = ? WHERE key = ?",
|
});
|
||||||
[stopAsking, MASTER_SETTINGS_KEY],
|
|
||||||
);
|
|
||||||
if (USE_DEXIE_DB) {
|
if (USE_DEXIE_DB) {
|
||||||
await db.settings.update(MASTER_SETTINGS_KEY, {
|
await db.settings.update(MASTER_SETTINGS_KEY, {
|
||||||
hideRegisterPromptOnNewContact: stopAsking,
|
hideRegisterPromptOnNewContact: stopAsking,
|
||||||
|
|||||||
Reference in New Issue
Block a user