remoteHostId in entities kotlin

This commit is contained in:
spaced4ndy 2023-11-20 16:31:52 +04:00
parent 53a31ec60e
commit 44c88badde
2 changed files with 6 additions and 2 deletions

View File

@ -231,6 +231,7 @@ fun PreviewIncomingCallLockScreenAlert() {
) { ) {
IncomingCallLockScreenAlertLayout( IncomingCallLockScreenAlertLayout(
invitation = RcvCallInvitation( invitation = RcvCallInvitation(
remoteHostId = null,
user = User.sampleData, user = User.sampleData,
contact = Contact.sampleData, contact = Contact.sampleData,
callType = CallType(media = CallMediaType.Audio, capabilities = CallCapabilities(encryption = false)), callType = CallType(media = CallMediaType.Audio, capabilities = CallCapabilities(encryption = false)),

View File

@ -2531,7 +2531,7 @@ data class UserProtocolServers(
@Serializable @Serializable
data class ServerCfg( data class ServerCfg(
val remoteHostId: Long? = null, val remoteHostId: Long?,
val server: String, val server: String,
val preset: Boolean, val preset: Boolean,
val tested: Boolean? = null, val tested: Boolean? = null,
@ -2549,7 +2549,7 @@ data class ServerCfg(
get() = server.isBlank() get() = server.isBlank()
companion object { companion object {
val empty = ServerCfg(server = "", preset = false, tested = null, enabled = true) val empty = ServerCfg(remoteHostId = null, server = "", preset = false, tested = null, enabled = true)
class SampleData( class SampleData(
val preset: ServerCfg, val preset: ServerCfg,
@ -2559,18 +2559,21 @@ data class ServerCfg(
val sampleData = SampleData( val sampleData = SampleData(
preset = ServerCfg( preset = ServerCfg(
remoteHostId = null,
server = "smp://abcd@smp8.simplex.im", server = "smp://abcd@smp8.simplex.im",
preset = true, preset = true,
tested = true, tested = true,
enabled = true enabled = true
), ),
custom = ServerCfg( custom = ServerCfg(
remoteHostId = null,
server = "smp://abcd@smp9.simplex.im", server = "smp://abcd@smp9.simplex.im",
preset = false, preset = false,
tested = false, tested = false,
enabled = false enabled = false
), ),
untested = ServerCfg( untested = ServerCfg(
remoteHostId = null,
server = "smp://abcd@smp10.simplex.im", server = "smp://abcd@smp10.simplex.im",
preset = false, preset = false,
tested = null, tested = null,