A real-time privacy-first social media platform leveraging feature-rich direct messaging text channels. Built as part of the course project for COSC 310 at UBC.
Added a message settings menu on the far right that allows users to delete messages (the edit message feature is currently there as a placeholder and is not functional as the scope of this pull request is on deleting messages)
Only made message deletion available for non-private chats in line with keeping private chats a core strong feature of our application (a new feature that does not exist on the marketplace!)
Ensured that users can only delete messages that they sent, and not messages of others
Visual Summary
Sent Messages
Ability to delete messages for the fender on the left
Inability for the receiver to delete the sender's message on the right
Deleted message
Inability to delete messages when the privacy toggle is on
Notes
Sometimes deleted messages don't get reflected in real-time for the user on the other end. The theory is that this has something to do with the text channels being clogged when too many messages are sent, as the way we are deleting messages is by pinging the other user with a special message that says "deleteMessage" and has the id of the message the other user requested to delete
Message deletion works flawlessly with MongoDB as refreshing the browser shows changed history after a message has been deleted
Summary of Changes
non-private
chats in line with keeping private chats a core strong feature of our application (a new feature that does not exist on the marketplace!)Visual Summary
Sent Messages
Ability to delete messages for the fender on the left
Inability for the receiver to delete the sender's message on the right
Deleted message
Inability to delete messages when the
privacy toggle
is onNotes