Skip to content
Snippets Groups Projects
Commit f011caab authored by Taras's avatar Taras
Browse files

Fix isEventRead

parent 96cb5a4e
No related branches found
No related tags found
No related merge requests found
......@@ -86,8 +86,10 @@ internal class DefaultReadService @AssistedInject constructor(
return isEventRead(monarchy.realmConfiguration, userId, roomId, eventId, shouldCheckIfReadInEventsThread)
}
//Added for viewers count
override fun isEventRead(eventId: String, userId: String): Boolean {
return isEventRead(monarchy.realmConfiguration, userId, roomId, eventId)
val shouldCheckIfReadInEventsThread = homeServerCapabilitiesDataSource.getHomeServerCapabilities()?.canUseThreadReadReceiptsAndNotifications == true
return isEventRead(monarchy.realmConfiguration, userId, roomId, eventId, shouldCheckIfReadInEventsThread)
}
override fun getReadMarkerLive(): LiveData<Optional<String>> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment