Reduce Scope
I am no longer going to support all the features and every NIP. It's too hard. Thus I am reducing what I support in YoSup. From now on it will only be a simple client with simple needs that serve me. I will continue to use Damus on iOS or other clients for sending Zaps or using other functionality. I do not feel I need to support these features and it has me competing with other clients such as Snort or Iris, I don't want to be a clone of them - I want a simple client for my needs: viewing what's up from people I follow. Thus I have started removing features and optimizing. Especially for the very poor internet connection here in Costa Rica, reducing load of images, content, etc. makes the client much faster and easier to use. If you feel you are missing features please use the other clients that have put in a LOT of hard work.
This commit is contained in:
parent
abc7612aae
commit
7580e8423a
10 changed files with 115 additions and 149 deletions
17
js/model.js
17
js/model.js
|
@ -7,6 +7,7 @@ function model_process_event(model, relay, ev) {
|
|||
return;
|
||||
}
|
||||
|
||||
let fetch_profile = false;
|
||||
model.all_events[ev.id] = ev;
|
||||
ev.refs = event_get_tag_refs(ev.tags);
|
||||
ev.pow = event_calculate_pow(ev);
|
||||
|
@ -15,6 +16,10 @@ function model_process_event(model, relay, ev) {
|
|||
// integers can't be used.
|
||||
let fn;
|
||||
switch(ev.kind) {
|
||||
case KIND_NOTE:
|
||||
case KIND_SHARE:
|
||||
fetch_profile = true;
|
||||
break;
|
||||
case KIND_METADATA:
|
||||
fn = model_process_event_metadata;
|
||||
break;
|
||||
|
@ -43,11 +48,13 @@ function model_process_event(model, relay, ev) {
|
|||
return;
|
||||
|
||||
// Request new profiles for unseen pubkeys of the event
|
||||
event_get_pubkeys(ev).forEach((pubkey) => {
|
||||
if (!model_has_profile(model, pubkey)) {
|
||||
model_que_profile(model, relay, pubkey);
|
||||
}
|
||||
});
|
||||
if (fetch_profile) {
|
||||
event_get_pubkeys(ev).forEach((pubkey) => {
|
||||
if (!model_has_profile(model, pubkey)) {
|
||||
model_que_profile(model, relay, pubkey);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function model_get_relay_que(model, relay) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue