diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/choose/VerificationChooseMethodController.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/choose/VerificationChooseMethodController.kt index ce25af5fcd..2695f75047 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/choose/VerificationChooseMethodController.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/choose/VerificationChooseMethodController.kt @@ -35,12 +35,6 @@ class VerificationChooseMethodController @Inject constructor( private var viewState: VerificationChooseMethodViewState? = null - init { - // We are requesting a model build directly as the first build of epoxy is on the main thread. - // It avoids to build the whole list on the main thread. - requestModelBuild() - } - fun update(viewState: VerificationChooseMethodViewState) { this.viewState = viewState requestModelBuild() diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt index 744b7ddd6c..f34c33bb63 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt @@ -37,12 +37,6 @@ class VerificationConclusionController @Inject constructor( private var viewState: VerificationConclusionViewState? = null - init { - // We are requesting a model build directly as the first build of epoxy is on the main thread. - // It avoids to build the whole list on the main thread. - requestModelBuild() - } - fun update(viewState: VerificationConclusionViewState) { this.viewState = viewState requestModelBuild() diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/emoji/VerificationEmojiCodeController.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/emoji/VerificationEmojiCodeController.kt index 46f956b110..6c74a127d3 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/emoji/VerificationEmojiCodeController.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/emoji/VerificationEmojiCodeController.kt @@ -38,12 +38,6 @@ class VerificationEmojiCodeController @Inject constructor( private var viewState: VerificationEmojiCodeViewState? = null - init { - // We are requesting a model build directly as the first build of epoxy is on the main thread. - // It avoids to build the whole list on the main thread. - requestModelBuild() - } - fun update(viewState: VerificationEmojiCodeViewState) { this.viewState = viewState requestModelBuild() diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt index 29bb1a9087..9e7945f627 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt @@ -38,12 +38,6 @@ class VerificationRequestController @Inject constructor( private var viewState: VerificationRequestViewState? = null - init { - // We are requesting a model build directly as the first build of epoxy is on the main thread. - // It avoids to build the whole list on the main thread. - requestModelBuild() - } - fun update(viewState: VerificationRequestViewState) { this.viewState = viewState requestModelBuild()