mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Make it compiles
This commit is contained in:
parent
237545622f
commit
f5fad8a082
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue