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