mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2025-12-24 09:24:21 +01:00
update nostr-sdk js
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@getalby/sdk": "^3.4.0",
|
||||
"@rust-nostr/nostr-sdk": "^0.13.0",
|
||||
"@rust-nostr/nostr-sdk": "^0.13.1",
|
||||
"@vuepic/vue-datepicker": "^7.4.1",
|
||||
"@vueuse/core": "^10.7.2",
|
||||
"bech32": "^2.0.0",
|
||||
|
||||
@@ -874,19 +874,17 @@ async function unfollow(result){
|
||||
|
||||
let client = store.state.client
|
||||
console.log(result.authorid)
|
||||
//TODO stop using 2 lists, but Contact elements currently not accesible
|
||||
let element = await store.state.followings.find(x => x === result.authorid)
|
||||
|
||||
let element = await store.state.contacts.find(x => x.publicKey.toHex() === result.authorid)
|
||||
|
||||
if (element !== undefined){
|
||||
|
||||
console.log(element)
|
||||
let index = store.state.followings.indexOf(element)
|
||||
let index = store.state.contacts.indexOf(element)
|
||||
console.log(index)
|
||||
console.log(store.state.contacts.length)
|
||||
console.log(store.state.followings.length)
|
||||
|
||||
let rm = store.state.contacts.splice(index, 1)
|
||||
let rm2 = store.state.followings.splice(index, 1)
|
||||
|
||||
|
||||
let list = store.state.contacts
|
||||
@@ -897,15 +895,6 @@ async function unfollow(result){
|
||||
return true
|
||||
}
|
||||
else {
|
||||
for (let pk of store.state.followings){
|
||||
if (pk === result.id){
|
||||
console.log("found!")
|
||||
}
|
||||
if (pk === PublicKey.parse(result.id).toBech32()){
|
||||
console.log("found bech32")
|
||||
}
|
||||
}
|
||||
|
||||
console.log("not found")
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user