Skip to content

Commit

Permalink
a few small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Feb 6, 2024
1 parent ada12f4 commit 94994da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object ClientManager {
api = ClientOptions.Api(
XMTPEnvironment.DEV,
appVersion = "XMTPAndroidExample/v1.0.0",
isSecure = false
isSecure = true
),
enableAlphaMls = true,
appContext = appContext
Expand Down
6 changes: 3 additions & 3 deletions library/src/main/java/org/xmtp/android/library/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class Client() {
}

private fun isAlphaMlsEnabled(options: ClientOptions?): Boolean {
return (options != null && options.enableAlphaMls && options.api.env == XMTPEnvironment.LOCAL && options.appContext != null)
return (options != null && options.enableAlphaMls && options.api.env != XMTPEnvironment.PRODUCTION && options.appContext != null)
}

private suspend fun ffiXmtpClient(
Expand Down Expand Up @@ -324,8 +324,8 @@ class Client() {

createClient(
logger = logger,
host = "http://${options.api.env.getValue()}:5556",
isSecure = false,
host = if (options.api.env == XMTPEnvironment.LOCAL) "http://${options.api.env.getValue()}:5556" else "https://${options.api.env.getValue()}:443",
isSecure = options.api.isSecure,
db = dbPath,
encryptionKey = retrievedKey.encoded,
accountAddress = accountAddress,
Expand Down

0 comments on commit 94994da

Please sign in to comment.