aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models
diff options
context:
space:
mode:
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