feat(db): implement active identity table separation #180

Open
anomalist wants to merge 24 commits from activedid_migration into master
4 changed files with 8 additions and 4 deletions
Showing only changes of commit c2f2ef4a09 - Show all commits

View File

@@ -134,7 +134,8 @@ export default class ContactGiftingView extends Vue {
try {
const settings = await this.$accountSettings();
this.apiServer = settings.apiServer || "";
this.activeDid = settings.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.allContacts = await this.$getAllContacts();

View File

@@ -288,7 +288,8 @@ export default class ContactQRScanShow extends Vue {
try {
const settings = await this.$accountSettings();
this.activeDid = settings.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.apiServer = settings.apiServer || "";
this.givenName = settings.firstName || "";
this.hideRegisterPromptOnNewContact =

View File

@@ -433,7 +433,8 @@ export default class OfferDetailsView extends Vue {
private async loadAccountSettings() {
const settings = await this.$accountSettings();
this.apiServer = settings.apiServer ?? "";
this.activeDid = settings.activeDid ?? "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) ?? "";
this.showGeneralAdvanced = settings.showGeneralAdvanced ?? false;
}

View File

@@ -116,7 +116,8 @@ export default class ShareMyContactInfoView extends Vue {
private async retrieveAccount(
settings: Settings,
): Promise<Account | undefined> {
const activeDid = settings.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
const activeDid = (await this.$getActiveDid()) || "";
if (!activeDid) {
return undefined;
}