UI: add 'mention' action in message actions to prefill input with @nick#abcd and focus input

This commit is contained in:
jack
2025-08-22 12:12:49 +02:00
parent 7b49268694
commit 0d064084aa
+8
View File
@@ -204,6 +204,14 @@ struct ContentView: View {
isPresented: $showMessageActions,
titleVisibility: .visible
) {
Button("mention") {
if let sender = selectedMessageSender {
// Pre-fill the input with an @mention and focus the field
messageText = "@\(sender) "
isTextFieldFocused = true
}
}
Button("private message") {
if let peerID = selectedMessageSenderID {
#if os(iOS)