From 9061d5c972dcd6e59cd54ab04b5d97926a41749c Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 4 Jun 2019 10:37:49 +0200 Subject: [PATCH] better code --- .../roomdirectory/picker/RoomDirectoryPickerController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerController.kt b/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerController.kt index 52d22c3b..e19c7a0b 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerController.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerController.kt @@ -41,7 +41,7 @@ class RoomDirectoryPickerController(private val stringProvider: StringProvider, when (asyncThirdPartyProtocol) { is Success -> { - val directories = roomDirectoryListCreator.computeDirectories(asyncThirdPartyProtocol.invoke()) + val directories = roomDirectoryListCreator.computeDirectories(asyncThirdPartyProtocol()) directories.forEach { buildDirectory(it)