ColinLefter / Accord

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.
5 stars 1 forks source link

Privacy toggle fix #212

Closed ColinLefter closed 3 months ago

ColinLefter commented 3 months ago

Summary of Changes

  1. removed privacy toggle from the navbar in the application shell
  2. migrated the privacy toggle to a SegmentedControl component within the Create text channel modal so chat owners can specify whether a text channel will be private upon channel creation. This means that users can no longer jailbreak the privacy toggle as they could before by refreshing, as the state of the toggle is now stored within our MongoDB database under a field called captureHistory that is added to every text channel. If it is true, we upload the chat history to our MongoDB database. Otherwise, we just rely on real-time SMS via Ably.
  3. Conducted extensive ad-hoc testing for the private and non-private text channels and confirmed that messages save or do not save accordingly. It is ensured that all direct messages are non-private.
  4. Patched an issue where text channels would auto sort themselves by date even after the user sorts them themselves (the draggable text channel feature is now fully functional and robust!)

Features In-Depth

Visual Summary of Changes

Screenshot 2024-04-08 at 5 12 14 PM Screenshot 2024-04-08 at 5 14 08 PM Screenshot 2024-04-08 at 5 14 44 PM Screenshot 2024-04-08 at 5 13 39 PM

image