Skip to content
Snippets Groups Projects
Verified Commit 41d696d0 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Clear read notifications on connect

parent 1ed6ed5e
Branches
Tags
No related merge requests found
Pipeline #
......@@ -60,7 +60,10 @@ class QuasselNotificationBackend @Inject constructor(
private val selfColor = context.getColorCompat(android.R.color.background_dark)
override fun init(session: Session) {
// TODO
for (buffer in session.bufferSyncer.bufferInfos()) {
val lastSeenId = session.bufferSyncer.lastSeenMsg(buffer.bufferId)
database.notifications().markRead(buffer.bufferId, lastSeenId)
}
}
@Synchronized
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment