Fix regression: not able to create a room without IS configured (Fixes #1679)
This commit is contained in:
parent
5063188b25
commit
33b2abc3b9
@ -8,7 +8,7 @@ Improvements 🙌:
|
|||||||
-
|
-
|
||||||
|
|
||||||
Bugfix 🐛:
|
Bugfix 🐛:
|
||||||
-
|
- Fix regression: not able to create a room without IS configured (#1679)
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
@ -46,7 +46,7 @@ internal class CreateRoomBodyBuilder @Inject constructor(
|
|||||||
suspend fun build(params: CreateRoomParams): CreateRoomBody {
|
suspend fun build(params: CreateRoomParams): CreateRoomBody {
|
||||||
val invite3pids = params.invite3pids
|
val invite3pids = params.invite3pids
|
||||||
.takeIf { it.isNotEmpty() }
|
.takeIf { it.isNotEmpty() }
|
||||||
.let {
|
?.let { invites ->
|
||||||
// This can throw Exception if Identity server is not configured
|
// This can throw Exception if Identity server is not configured
|
||||||
ensureIdentityTokenTask.execute(Unit)
|
ensureIdentityTokenTask.execute(Unit)
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ internal class CreateRoomBodyBuilder @Inject constructor(
|
|||||||
?: throw IdentityServiceError.NoIdentityServerConfigured
|
?: throw IdentityServiceError.NoIdentityServerConfigured
|
||||||
val identityServerAccessToken = accessTokenProvider.getToken() ?: throw IdentityServiceError.NoIdentityServerConfigured
|
val identityServerAccessToken = accessTokenProvider.getToken() ?: throw IdentityServiceError.NoIdentityServerConfigured
|
||||||
|
|
||||||
params.invite3pids.map {
|
invites.map {
|
||||||
ThreePidInviteBody(
|
ThreePidInviteBody(
|
||||||
id_server = identityServerUrlWithoutProtocol,
|
id_server = identityServerUrlWithoutProtocol,
|
||||||
id_access_token = identityServerAccessToken,
|
id_access_token = identityServerAccessToken,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user