mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 00:25:19 +00:00
UI: add 'mention' action in message actions to prefill input with @nick#abcd and focus input
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user