Fix kltint errors

This commit is contained in:
ariskotsomitopoulos 2022-01-12 16:45:15 +02:00
parent b92cb753f9
commit 6f5f773360
1 changed files with 1 additions and 2 deletions

View File

@ -132,7 +132,6 @@ internal class RoomSyncHandler @Inject constructor(private val readReceiptHandle
}.also {
fixStuckLocalEcho(it)
}
}
}
is HandlingStrategy.INVITED ->
@ -514,7 +513,7 @@ internal class RoomSyncHandler @Inject constructor(private val readReceiptHandle
* While we cannot know when a specific event arrived from the pagination (no transactionId included), after each room /sync
* we clear all SENT events, and we are sure that we will receive it from /sync or pagination
*/
private fun fixStuckLocalEcho(rooms: List<RoomEntity>){
private fun fixStuckLocalEcho(rooms: List<RoomEntity>) {
rooms.forEach { roomEntity ->
roomEntity.sendingTimelineEvents.filter { timelineEvent ->
timelineEvent.root?.sendState == SendState.SENT