1
0
mirror of https://github.com/vector-im/element-android.git synced 2025-07-28 08:42:00 +03:00

Implement LOCAL thread notifications that work only on real time.

This commit is contained in:
ariskotsomitopoulos
2021-12-03 18:15:25 +00:00
parent d1bb96cec0
commit c40a686cff
16 changed files with 141 additions and 18 deletions

View File

@ -106,6 +106,13 @@ class FlowRoom(private val room: Room) {
room.getAllThreads()
}
}
fun liveLocalUnreadThreadList(): Flow<List<TimelineEvent>> {
return room.getNumberOfLocalThreadNotificationsLive().asFlow()
.startWith(room.coroutineDispatchers.io) {
room.getNumberOfLocalThreadNotifications()
}
}
}
fun Room.flow(): FlowRoom {