reconnect server button

This commit is contained in:
spaced4ndy committed 2024-06-26 10:58:26 +04:00
1 parent 4f2838d329
commit fd11c9d0b3
3 files changed
+128 -70

No files matched your search

+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))
}