Room : start to handle read markers. Only used when you open the room at the moment.

This commit is contained in:
ganfra
2019-01-28 17:56:23 +01:00
parent 9a42c121e4
commit b2e2c14e69
13 changed files with 212 additions and 7 deletions

View File

@ -50,6 +50,7 @@ class RoomDetailViewModel(initialState: RoomDetailViewState,
observeRoomSummary()
observeTimeline()
room.loadRoomMembersIfNeeded()
room.markLatestAsRead(callback = object : MatrixCallback<Void> {})
}
fun accept(action: RoomDetailActions) {

View File

@ -2,5 +2,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/dark_grey" />
<solid android:color="@color/grey_lynch" />
</shape>

View File

@ -52,7 +52,7 @@
android:gravity="center"
android:minWidth="24dp"
android:textColor="@android:color/white"
android:textSize="10sp"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"

View File

@ -16,4 +16,5 @@
<color name="cool_grey">#a5aab2</color>
<color name="pale_grey_two">#ebedf8</color>
<color name="brown_grey">#a5a5a5</color>
<color name="grey_lynch">#61708B</color>
</resources>