aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2024-01-13 19:48:03 -0800
committerDustin Mierau <dustin@mierau.me>2024-01-13 19:48:03 -0800
commite201330efa9fe8f8177119fe001fa0c42fd4053a (patch)
tree287567c81134760ac096c858a77bd6b356a82a6e /Hotline/Models
parent3f4e2c33a4c2719388d9378def981688fcaed210 (diff)
Add support for posting to the message board.
Diffstat (limited to 'Hotline/Models')
-rw-r--r--Hotline/Models/Hotline.swift4
1 files changed, 4 insertions, 0 deletions
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