refactor keys
This commit is contained in:
@@ -270,7 +270,8 @@
|
|||||||
products: [],
|
products: [],
|
||||||
orders: [],
|
orders: [],
|
||||||
user: {
|
user: {
|
||||||
keys: {}
|
keys: {},
|
||||||
|
orders: {}
|
||||||
},
|
},
|
||||||
keysDialog: {
|
keysDialog: {
|
||||||
show: false,
|
show: false,
|
||||||
@@ -353,11 +354,9 @@
|
|||||||
const privkey = nostr.generatePrivateKey()
|
const privkey = nostr.generatePrivateKey()
|
||||||
const pubkey = nostr.getPublicKey(privkey)
|
const pubkey = nostr.getPublicKey(privkey)
|
||||||
|
|
||||||
this.user = {
|
this.user.keys = {
|
||||||
keys: {
|
privatekey: privkey,
|
||||||
privatekey: privkey,
|
publickey: pubkey
|
||||||
publickey: pubkey
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getMessages(room_name, all = false) {
|
async getMessages(room_name, all = false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user