Added basic profile editing support

This commit is contained in:
Thomas Mathews 2022-12-24 08:01:36 -08:00
parent 153d69f33d
commit 1b4d539eef
7 changed files with 108 additions and 25 deletions

View file

@ -89,6 +89,7 @@ async function webapp_init() {
pool.on("event", on_pool_event);
pool.on("notice", on_pool_notice);
pool.on("eose", on_pool_eose);
pool.on("ok", on_pool_ok);
// Load all events from storage and re-process them so that apply correct
// effects.
@ -199,6 +200,10 @@ function on_pool_event(relay, sub_id, ev) {
model_process_event(model, relay, ev);
}
function on_pool_ok(relay, evid, status) {
log_debug(`OK(${relay.url}): ${evid} = '${status}'`);
}
function fetch_profiles(pool, relay, pubkeys) {
log_debug(`(${relay.url}) fetching '${pubkeys.length} profiles'`);
pool.subscribe(SID_PROFILES, [{