mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Revert to the SessionEnterpriseService approach
This commit is contained in:
+5
@@ -16,6 +16,7 @@ class FakeSessionEnterpriseService(
|
||||
private val isElementCallAvailableResult: () -> Boolean = { lambdaError() },
|
||||
private val tweakMasUrlResult: (String) -> String = { lambdaError() },
|
||||
private val isEncryptionDisabledResult: () -> Boolean = { lambdaError() },
|
||||
private val arePublicRoomsDisabledResult: () -> Boolean = { lambdaError() },
|
||||
) : SessionEnterpriseService {
|
||||
override suspend fun init() {
|
||||
}
|
||||
@@ -31,4 +32,8 @@ class FakeSessionEnterpriseService(
|
||||
override suspend fun isEncryptionDisabledByHomeserver(): Boolean {
|
||||
return isEncryptionDisabledResult()
|
||||
}
|
||||
|
||||
override suspend fun arePublicRoomsDisabledByHomeserver(): Boolean {
|
||||
return arePublicRoomsDisabledResult()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user