Skip to content

Commit

Permalink
#44 Ready to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomilar committed May 16, 2019
1 parent b26018b commit 19a8601
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/controls/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,17 @@ Vue.component('profile', {
c.displayName = this.name;
EcIdentityManager.addContact(c);
this.inContactList = true;
app.mePerson.addReader(EcPk.fromPem(this.pk));
repo.saveTo(app.mePerson,console.log,console.error);
},
uncontact: function () {
for (var i = 0; i < EcIdentityManager.contacts.length; i++) {
if (EcIdentityManager.contacts[i].pk.toPem() == this.pk)
EcIdentityManager.contactChanged(EcIdentityManager.contacts.splice(i, 1));
}
this.inContactList = false;
app.mePerson.removeReader(EcPk.fromPem(this.pk));
repo.saveTo(app.mePerson,console.log,console.error);
},
shareAssertionsAboutSubjectWith: function () {
var me = this;
Expand Down

0 comments on commit 19a8601

Please sign in to comment.