Skip to content

Improve file forwarding rules, clean Gallery picker, and handle garbage messages in Group Chat#76

Merged
nyerunkar merged 3 commits intomainfrom
access-control-page-ui-updation
Mar 20, 2026
Merged

Improve file forwarding rules, clean Gallery picker, and handle garbage messages in Group Chat#76
nyerunkar merged 3 commits intomainfrom
access-control-page-ui-updation

Conversation

@girishjadhav-cosmica
Copy link
Member

Description:
This MR addresses three improvements across the application to enhance user experience and maintain expected behavior:


1. File Forwarding Restriction


2. Gallery Picker Cleanup


3. Group Chat Garbage Messages Handling


Changes:

  • Added validation logic for forwarding restriction.
  • Updated UI for Gallery picker.
  • Implemented fallback handling for invalid chat messages.
  • Added and updated tests for all three changes.

Testing:

  • Verified files cannot be forwarded to their original owner.
  • Confirmed forwarding works for valid recipients.
  • Checked that "Gallery" and "Audio" options are removed from the picker.
  • Ensured garbage messages are replaced with "Privitty Message".
  • All tests are passing and no regressions observed.

Impact:

  • Improves system integrity and prevents incorrect actions.
  • Enhances UI clarity and user experience.
  • Ensures clean and consistent chat behavior.

- added validation to block forwarding to original uploader

tests: added and verified forwarding restriction
Issue ref #73
testing: verified options are no longer visible and functionality unaffected
Issue ref #74
- add fallback for invalid messages

test:
- unit tested for invalid message handling
- verify fallback text is rendered correctly
- ensured no regressions in chat UI
Issue Ref #75
Copy link
Collaborator

@nyerunkar nyerunkar left a comment

Choose a reason for hiding this comment

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

Approved

@nyerunkar nyerunkar merged commit f70e351 into main Mar 20, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

2 participants