Fixes the blue notification dot appearing when the user receives a notification from a blocked account before downloading the blocklist
This commit is contained in:
@@ -193,7 +193,8 @@ open class LatestItem {
|
||||
fun updateNewestItem(newNotes: Set<Note>, account: Account, filter: AdditiveFeedFilter<Note>): Note? {
|
||||
val newestItem = newestItemPerAccount[account.userProfile().pubkeyHex]
|
||||
|
||||
if (newestItem == null) {
|
||||
// Block list got updated
|
||||
if (newestItem == null || !account.isAcceptable(newestItem)) {
|
||||
newestItemPerAccount = newestItemPerAccount + Pair(
|
||||
account.userProfile().pubkeyHex,
|
||||
filterMore(filter.feed(), account).firstOrNull { it.createdAt() != null }
|
||||
|
||||
Reference in New Issue
Block a user