From 5726ab32f161e4b62ee0d65303b76d9894769c92 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 26 Jul 2024 21:52:20 -0700 Subject: Added support for announce in chat, hold shift while pressing enter to send chat. --- Hotline/Models/Hotline.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Hotline/Models') 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] { -- cgit