You've already forked element-android
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user