autosyncing, appearance tweaks
This commit is contained in:
@@ -89,6 +89,16 @@ final class XPCClient
|
||||
_ = try await sendSync(req)
|
||||
}
|
||||
|
||||
public func syncConversationList() async throws {
|
||||
let req = makeRequest(method: "SyncConversationList")
|
||||
_ = try await sendSync(req)
|
||||
}
|
||||
|
||||
public func markConversationAsRead(conversationId: String) async throws {
|
||||
let req = makeRequest(method: "MarkConversationAsRead", arguments: ["conversation_id": xpcString(conversationId)])
|
||||
_ = try await sendSync(req)
|
||||
}
|
||||
|
||||
public func getMessages(conversationId: String, limit: Int = 100, offset: Int = 0) async throws -> [Serialized.Message] {
|
||||
var args: [String: xpc_object_t] = [:]
|
||||
args["conversation_id"] = xpcString(conversationId)
|
||||
|
||||
Reference in New Issue
Block a user