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(() => { setTimeout(() => {
const model = DAMUS; const model = DAMUS;
//model_save_events(model); //model_save_events(model);
//model_save_settings(model); model_save_settings(model);
on_timer_save(); on_timer_save();
}, 1 * 1000); }, 1 * 1000);
} }

View file

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