Removes potential bug when the list contains an e tag with an a reference

This commit is contained in:
Vitor Pamplona 2023-09-13 11:45:17 -04:00
parent dee231d43a
commit 3b2686ffeb

View File

@ -1214,7 +1214,7 @@ class Account(
val event = if (note is AddressableNote) {
BookmarkListEvent.create(
"bookmark",
bookmarks?.taggedEvents() ?: emptyList(),
bookmarks?.taggedEvents()?.minus(note.address.toTag()) ?: emptyList(),
bookmarks?.taggedUsers() ?: emptyList(),
bookmarks?.taggedAddresses()?.minus(note.address),