avoids sending expired events to the cloud
This commit is contained in:
@@ -2619,7 +2619,7 @@ object LocalCache : ILocalCache {
|
||||
// updates relay with a new event.
|
||||
getAddressableNoteIfExists(event.address())?.let { note ->
|
||||
note.event?.let { existingEvent ->
|
||||
if (existingEvent.createdAt > event.createdAt && !note.hasRelay(relay.url) && !deletionIndex.hasBeenDeleted(event)) {
|
||||
if (existingEvent.createdAt > event.createdAt && !note.hasRelay(relay.url) && !deletionIndex.hasBeenDeleted(event) && !event.isExpired()) {
|
||||
if (isDebug) {
|
||||
Log.d("LocalCache", "Updating ${relay.url.url} with a new version of ${event.kind} ${event.id} to ${existingEvent.id}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user