mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-08-08 13:11:46 +02:00
catch exception if user is not logged in
This commit is contained in:
@@ -413,6 +413,11 @@ async function checkuser(msg){
|
||||
|
||||
async function get_user_from_search(name){
|
||||
name = "\"name\":" + name
|
||||
|
||||
if (store.state.dbclient.database === undefined){
|
||||
console.log("not logged in, not getting profile suggestions")
|
||||
return []
|
||||
}
|
||||
let dbclient = store.state.dbclient
|
||||
let profiles = []
|
||||
let filter1 = new Filter().kind(0).search(name)
|
||||
|
Reference in New Issue
Block a user