From e201330efa9fe8f8177119fe001fa0c42fd4053a Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Sat, 13 Jan 2024 19:48:03 -0800 Subject: Add support for posting to the message board. --- Hotline/Models/Hotline.swift | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Hotline/Models') diff --git a/Hotline/Models/Hotline.swift b/Hotline/Models/Hotline.swift index bdba307..f15bbb6 100644 --- a/Hotline/Models/Hotline.swift +++ b/Hotline/Models/Hotline.swift @@ -292,6 +292,10 @@ final class Hotline: HotlineClientDelegate, HotlineFileClientDelegate { return self.messageBoard } + @MainActor func postToMessageBoard(text: String) { + self.client.sendPostMessageBoard(text: text) + } + @MainActor func getFileList(path: [String] = []) async -> [FileInfo] { return await withCheckedContinuation { [weak self] continuation in self?.client.sendGetFileList(path: path) { [weak self] files in -- cgit