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

added read receipts for threads (#7474)

This commit is contained in:
Nikita Fedrunov
2022-11-25 09:49:06 +01:00
committed by GitHub
parent 27419f0d33
commit 18bcc83a46
22 changed files with 214 additions and 93 deletions

View File

@ -100,8 +100,8 @@ class FlowRoom(private val room: Room) {
return room.readService().getReadMarkerLive().asFlow()
}
fun liveReadReceipt(): Flow<Optional<String>> {
return room.readService().getMyReadReceiptLive().asFlow()
fun liveReadReceipt(threadId: String?): Flow<Optional<String>> {
return room.readService().getMyReadReceiptLive(threadId).asFlow()
}
fun liveEventReadReceipts(eventId: String): Flow<List<ReadReceipt>> {