Re-enable saving (woops).

This commit is contained in:
Thomas Mathews 2023-04-15 08:42:29 -07:00
parent 8e8d8a7e6d
commit 2176579524
2 changed files with 6 additions and 10 deletions

View file

@ -160,7 +160,7 @@ function on_timer_save() {
setTimeout(() => {
const model = DAMUS;
//model_save_events(model);
//model_save_settings(model);
model_save_settings(model);
on_timer_save();
}, 1 * 1000);
}

View file

@ -392,7 +392,6 @@ async function model_save_settings(model) {
pubkey: model.pubkey,
notifications_last_viewed: model.notifications.last_viewed,
relays: Array.from(model.relays),
embeds: model.embeds,
dms_seen: model_get_dms_seen(model),
});
};
@ -496,16 +495,13 @@ function new_model() {
elements: {}, // map of evid > rendered element
relay_que: new Map(),
relays: new Set([
"wss://nostr-pub.wellorder.net",
"wss://nostr-relay.wlvs.space",
"wss://nostr.oxtr.dev",
"wss://brb.io",
"wss://sg.qemura.xyz",
"wss://nostr.v0l.io",
"wss://relay.nostr.bg",
"wss://nostr.mom",
"wss://relay.damus.io",
"wss://no.str.cr",
"wss://relay.snort.social",
"wss://nos.lol",
"wss://relay.nostr.lucentlabs.co",
]),
embeds: "friends", // friends, everyone
max_depth: 2,
reactions_to: {},