reconnect server button

This commit is contained in:
spaced4ndy
2024-06-26 10:58:26 +04:00
parent 4f2838d329
commit fd11c9d0b3
3 changed files with 128 additions and 70 deletions
+5
View File
@@ -541,6 +541,11 @@ func reconnectAllServers() async throws {
try await sendCommandOkResp(.reconnectAllServers)
}
func reconnectServer(smpServer: String) async throws {
let userId = try currentUserId("reconnectServer")
try await sendCommandOkResp(.reconnectServer(userId: userId, smpServer: smpServer))
}
func apiSetChatSettings(type: ChatType, id: Int64, chatSettings: ChatSettings) async throws {
try await sendCommandOkResp(.apiSetChatSettings(type: type, id: id, chatSettings: chatSettings))
}