Victory Post Interaction Feature - johnmccants002/victory GitHub Wiki

Victory Post Interaction Features

Direct Message Responses to Posts

Overview

Users can respond to Victory posts through private direct messages (DMs), allowing for personal interactions.

Functionality

  • Initiating a Direct Message: Option to send a DM from a Victory post.
  • Privacy: DMs are private between the sender and the recipient.

Data Structure (Firebase)

"directMessages": {
  "messageId789": {
    "senderUserId": "userId123",
    "recipientUserId": "userId124",
    "postId": "postId456",
    "timestamp": "2024-01-16T14:00:00Z",
    "messageContent": "Great job on your workout today!"
  }
}

Overview The "Respect" button enables users to show appreciation for a post, with no visible count to encourage genuine reactions.

Functionality Respect Action: Users can click a "Respect" button on a post. No Visible Count: The total number of respects is not displayed.

"posts": { "postId456": { // other post details "respects": { "userId123": true, "userId124": true } } }

Example Usage A user clicks the "Respect" button on a post, and their UserID is recorded, but no count is displayed.