Add Send Message to Nodes long-press context menu#374
Merged
Avi0n merged 4 commits intoJul 20, 2026
Conversation
Long-pressing a chat contact in the Nodes list showed Delete, Block/Unblock, and Favorite/Unfavorite, but no quick way to jump into the conversation without first opening Contact Detail. Adds a Send Message item at the top of the menu for chat-type, non-blocked contacts, reusing the same navigateToChat action and gating already used in Contact Detail's action row. See discussion: Avi0n#372 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Resolve ContactContextMenuModifier conflict by keeping both: - Send Message menu item for chat contacts (this PR) - V-contact delete gate from dev (ZephCore admin CLI protection)
Owner
|
Looks great, thanks for your contribution :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a Send Message item to the Nodes long-press context menu, discussed in #372. Split out from #373 into its own PR at the maintainer's request so each change can be reviewed independently.
Long-pressing a chat contact in the Nodes/Contacts list currently shows Delete, Block/Unblock, and Favorite/Unfavorite, but no quick way to jump into the conversation — you have to open Contact Detail first.
Overview of Changes
MC1/Views/Contacts/ContactContextMenuModifier.swift: added a Send Message item at the top of the long-press menu, shown only for chat-type, non-blocked contacts. Reuses the existingappState.navigation.navigateToChat(with:)action and the same connection-state gating (disabled(!isConnected)) already used for the equivalent button inContactDetailView's action row.No other files touched — single, focused change.
Testing
xcodebuild build -project MC1.xcodeproj -scheme MC1 -destination 'platform=iOS Simulator,name=iPhone 17e,OS=26.5'— BUILD SUCCEEDED, isolated on this branch (no other pending changes).swiftlint lint— clean, no warnings/errors.Tested on
Checklist
CONTRIBUTING.md