Make it compiles

This commit is contained in:
Benoit Marty 2021-03-02 11:00:29 +01:00
parent 237545622f
commit f5fad8a082

View File

@ -81,7 +81,7 @@ class ViewEditHistoryViewModel @AssistedInject constructor(@Assisted
var originalIsReply = false
val events = data.map { event ->
data.forEach { event ->
val timelineID = event.roomId + UUID.randomUUID().toString()
// We need to check encryption
if (event.isEncrypted() && event.mxDecryptionResult == null) {
@ -105,7 +105,7 @@ class ViewEditHistoryViewModel @AssistedInject constructor(@Assisted
}
setState {
copy(
editList = Success(events),
editList = Success(data),
isOriginalAReply = originalIsReply
)
}