Skip to content
Snippets Groups Projects
Verified Commit 4cfd685a authored by Mikolai Gütschow's avatar Mikolai Gütschow
Browse files

properly set read flag on blog posts

parent ec72abb2
Branches
Tags 0.6.0-beta
1 merge request!369properly set read flag on blog posts
Pipeline #15916 passed
......@@ -227,7 +227,7 @@ class FeedViewModel @Inject constructor(
if (readIds.isNotEmpty()) {
runOnDbThreadWithTransaction(false) { txn ->
readIds.forEach { id ->
blogManager.setReadFlag(txn, id, false)
blogManager.setReadFlag(txn, id, true)
}
txn.attach {
eventBus.broadcast(BlogPostsReadEvent(readIds.size))
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment