From 8642d757e2d5fc2958c95afc6dd681a73cf31d06 Mon Sep 17 00:00:00 2001 From: Taksh Date: Mon, 5 Oct 2026 16:16:05 +0530 Subject: [PATCH] feat: copy nickname from mesh peer context menu Long-press a person in #mesh to copy their display name for /msg or sharing outside the app. --- bitchat/Views/MeshPeerList.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bitchat/Views/MeshPeerList.swift b/bitchat/Views/MeshPeerList.swift index 1d94af5f..ab888dbe 100644 --- a/bitchat/Views/MeshPeerList.swift +++ b/bitchat/Views/MeshPeerList.swift @@ -34,6 +34,7 @@ struct MeshPeerList: View { static let directMessage = String(localized: "content.actions.direct_message", comment: "Action that opens a private chat with the person") static let block = String(localized: "geohash_people.action.block", comment: "Context menu action to block a person") static let unblock = String(localized: "geohash_people.action.unblock", comment: "Context menu action to unblock a person") + static let copyNickname = String(localized: "mesh_peers.action.copy_nickname", comment: "Context menu action that copies a peer's display name") } var body: some View { @@ -189,6 +190,9 @@ struct MeshPeerList: View { Button(Strings.directMessage) { onTapPeer(peer.peerID) } + Button(Strings.copyNickname) { + NicknameClipboard.copy(peer.displayName) + } Button(peer.isFavorite ? Strings.removeFavorite : Strings.addFavorite) { onToggleFavorite(peer.peerID) } @@ -214,6 +218,9 @@ struct MeshPeerList: View { .accessibilityHint(isMe ? "" : Strings.openDMHint) .accessibilityActions { if !isMe { + Button(Strings.copyNickname) { + NicknameClipboard.copy(peer.displayName) + } Button(peer.isFavorite ? Strings.removeFavorite : Strings.addFavorite) { onToggleFavorite(peer.peerID) }