Don't remove notifications
This commit is contained in:
parent
ede45a9d46
commit
4de4c7c82a
|
@ -103,9 +103,6 @@ struct NotificationsTab: View {
|
||||||
if selectedTab == .notifications || isSecondaryColumn {
|
if selectedTab == .notifications || isSecondaryColumn {
|
||||||
if let token = appAccount.currentAccount.oauthToken {
|
if let token = appAccount.currentAccount.oauthToken {
|
||||||
userPreferences.notificationsCount[token] = 0
|
userPreferences.notificationsCount[token] = 0
|
||||||
Task {
|
|
||||||
let _: ServerError = try await client.post(endpoint: Notifications.clear)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
watcher.unreadNotificationsCount = 0
|
watcher.unreadNotificationsCount = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue