Skip to content
Snippets Groups Projects
Verified Commit e33fd8df authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

fix: correct an issue with badly annotated sync calls

parent 71a478d9
No related branches found
No related tags found
No related merge requests found
......@@ -464,7 +464,7 @@ open class Network(
super.setIdentity(identityId)
}
override fun setMyNick(myNick: String) {
override fun setMyNick(myNick: String?) {
state.update {
copy(myNick = myNick)
}
......@@ -485,7 +485,7 @@ open class Network(
super.setNetworkName(networkName)
}
override fun setCurrentServer(currentServer: String) {
override fun setCurrentServer(currentServer: String?) {
state.update {
copy(currentServer = currentServer)
}
......
......@@ -27,7 +27,7 @@ data class NetworkState(
val myNick: String? = "",
val latency: Int = 0,
val networkName: String = "<not initialized>",
val currentServer: String = "",
val currentServer: String? = null,
val connected: Boolean = false,
val connectionState: ConnectionState = ConnectionState.Disconnected,
val ircUsers: Map<String, IrcUser> = emptyMap(),
......
......@@ -62,7 +62,7 @@ interface IgnoreListManagerStub : StatefulSyncableStub {
isActive: Boolean
) {
sync(
target = ProtocolSide.CLIENT,
target = ProtocolSide.CORE,
"requestAddIgnoreListItem",
qVariant(type, QtType.Int),
qVariant(ignoreRule, QtType.QString),
......
......@@ -35,7 +35,7 @@ interface NetworkStub : StatefulSyncableStub {
}
@SyncedCall(target = ProtocolSide.CLIENT)
fun setCurrentServer(currentServer: String) {
fun setCurrentServer(currentServer: String?) {
sync(
target = ProtocolSide.CLIENT,
"setCurrentServer",
......@@ -44,7 +44,7 @@ interface NetworkStub : StatefulSyncableStub {
}
@SyncedCall(target = ProtocolSide.CLIENT)
fun setMyNick(myNick: String) {
fun setMyNick(myNick: String?) {
sync(
target = ProtocolSide.CLIENT,
"setMyNick",
......@@ -361,7 +361,7 @@ interface NetworkStub : StatefulSyncableStub {
@SyncedCall(target = ProtocolSide.CORE)
fun requestConnect() {
sync(
target = ProtocolSide.CLIENT,
target = ProtocolSide.CORE,
"requestConnect",
)
}
......@@ -369,7 +369,7 @@ interface NetworkStub : StatefulSyncableStub {
@SyncedCall(target = ProtocolSide.CORE)
fun requestDisconnect() {
sync(
target = ProtocolSide.CLIENT,
target = ProtocolSide.CORE,
"requestDisconnect",
)
}
......@@ -377,7 +377,7 @@ interface NetworkStub : StatefulSyncableStub {
@SyncedCall(target = ProtocolSide.CORE)
fun requestSetNetworkInfo(info: NetworkInfo) {
sync(
target = ProtocolSide.CLIENT,
target = ProtocolSide.CORE,
"requestSetNetworkInfo",
qVariant(info, QuasselType.NetworkInfo),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment