remoteHostId in entities kotlin
This commit is contained in:
parent
53a31ec60e
commit
44c88badde
@ -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)),
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user