Revert to the SessionEnterpriseService approach

This commit is contained in:
mxandreas
2026-10-09 09:50:14 +03:00
parent 2e5a6b72c9
commit 118b5448ac
14 changed files with 114 additions and 82 deletions
@@ -29,4 +29,10 @@ interface SessionEnterpriseService {
/** Whether the homeserver forbids creating encrypted rooms, in which case the app must not offer the option. */
suspend fun isEncryptionDisabledByHomeserver(): Boolean
/**
* Whether the homeserver forbids public rooms and spaces, in which case the app must not offer to create one,
* nor to make an existing room or space public.
*/
suspend fun arePublicRoomsDisabledByHomeserver(): Boolean
}