if a user is followed, their events are requested too

This commit is contained in:
Vishal 2022-09-07 04:46:37 +05:30
parent 0eff610aeb
commit ef75ba3fad

View File

@ -387,6 +387,7 @@ Future<void> otherMenuUi(Store node) async {
} else {
print("The contact already exists in the contact list. Republishing the old contact list.");
sendEvent(node, contactEvent);
getUserEvents(gListRelayUrls1, pk, gLimitPerSubscription, getSecondsDaysAgo(gDaysToGetEventsFor));
}
} else {
// TODO fix the send event functions by streamlining them
@ -403,6 +404,7 @@ Future<void> otherMenuUi(Store node) async {
EventData newEventData = EventData(newId, newPubkey, newCreatedAt, newKind, newContent, newEtags, newPtags, newContactList, newTags, newNewLikes,);
Event newEvent = Event( "EVENT", newId, newEventData, [], "");
sendEvent(node, newEvent);
getUserEvents(gListRelayUrls1, pk, gLimitPerSubscription, getSecondsDaysAgo(gDaysToGetEventsFor));
}
}
}