aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2024-07-26 21:52:20 -0700
committerDustin Mierau <dustin@mierau.me>2024-07-26 21:52:20 -0700
commit5726ab32f161e4b62ee0d65303b76d9894769c92 (patch)
tree2558f498b48045d9bdf95177c8087b2da4f3db67 /Hotline/Models
parente7725f97178fdf269973018114e2c5a4f0241251 (diff)
Added support for announce in chat, hold shift while pressing enter to send chat.
Diffstat (limited to 'Hotline/Models')
-rw-r--r--Hotline/Models/Hotline.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Hotline/Models/Hotline.swift b/Hotline/Models/Hotline.swift
index 11781c7..30d2ef5 100644
--- a/Hotline/Models/Hotline.swift
+++ b/Hotline/Models/Hotline.swift
@@ -244,8 +244,8 @@ class Hotline: Equatable, HotlineClientDelegate, HotlineFileDownloadClientDelega
self.unreadInstantMessages.removeValue(forKey: userID)
}
- @MainActor func sendChat(_ text: String) {
- self.client.sendChat(message: text)
+ @MainActor func sendChat(_ text: String, announce: Bool = false) {
+ self.client.sendChat(message: text, announce: announce)
}
@MainActor func getMessageBoard() async -> [String] {