Skip to content

Add 'Send private message' action to chat user sheet#649

Merged
callebtc merged 4 commits intopermissionlesstech:mainfrom
a1denvalu3:feature/private-message-action
Mar 25, 2026
Merged

Add 'Send private message' action to chat user sheet#649
callebtc merged 4 commits intopermissionlesstech:mainfrom
a1denvalu3:feature/private-message-action

Conversation

@a1denvalu3
Copy link
Copy Markdown
Contributor

Summary

Adds a "Send private message" option to the user action sheet, which appears when long-pressing a user's avatar or message in the chat. This allows users to quickly initiate a Direct Message (DM) without navigating back to the main peer list.

Changes

  • UI: Added a "Send private message" row to ChatUserSheet. The action uses a distinct purple color to separate it from moderation actions (block/slap/hug).
  • Logic:
    • Supports Mesh Chat: Resolves the peer ID and starts a private chat.
    • Supports Geohash Chat: Resolves the user's public key (via nickname or short ID) and initiates a Nostr-based DM.
  • ViewModel: Added startGeohashDMByShortId and startGeohashDMByNickname to ChatViewModel and GeohashViewModel.
  • Repository: Added findPubkeyByShortId to GeohashRepository to support looking up users by the 8-char short ID found in BitchatMessage.

Testing

  • Verified on local build.
  • Checked flow for both Bluetooth mesh peers and Geohash channel participants.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d7cedd5da

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@a1denvalu3 a1denvalu3 marked this pull request as draft January 18, 2026 14:50
@a1denvalu3 a1denvalu3 marked this pull request as ready for review January 18, 2026 15:07
@Michael679089
Copy link
Copy Markdown

Is the message sent directly to your favorite peer or is it still passed peer to peer?

@callebtc callebtc merged commit 96b35e9 into permissionlesstech:main Mar 25, 2026
3 checks passed
@a1denvalu3 a1denvalu3 deleted the feature/private-message-action branch March 25, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants