mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-27 02:01:51 +01:00
improved so that user mentions do get stored in file at the end
and removed the 'recent only' condition when handling incoming events.
This commit is contained in:
parent
afa29325ff
commit
828313d940
@ -1015,9 +1015,8 @@ class Store {
|
||||
allChildEventsMap[newEvent.eventData.id] = Tree(newEvent, [], this);
|
||||
|
||||
// add to new-notification list only if this is a recent event ( because relays may send old events, and we dont want to highlight stale messages)
|
||||
if( newEvent.eventData.createdAt > getSecondsDaysAgo(gDontHighlightEventsOlderThan)) {
|
||||
newEventIdsSet.add(newEvent.eventData.id);
|
||||
}
|
||||
newEventIdsSet.add(newEvent.eventData.id);
|
||||
|
||||
|
||||
});
|
||||
|
||||
@ -1630,7 +1629,8 @@ class Store {
|
||||
if( tree.event.eventData.createdAt < getSecondsDaysAgo(gDontSaveBeforeDays) ) {
|
||||
if( tree.event.eventData.pubkey != userPublicKey ) {
|
||||
if( !(tree.event.eventData.kind == 4 && isValidDirectMessage(tree.event.eventData)))
|
||||
continue;
|
||||
if( !tree.event.eventData.pTags.contains(userPublicKey))
|
||||
continue;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user