Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message-list : add a prompt to notify guest(s) when DM #1362

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Abhisheksainii
Copy link

@Abhisheksainii Abhisheksainii commented Feb 16, 2025

Fixes #798

Changes made:

Add a prompt above composeBox to notify the user if the recipient is a guest or not. Attaching screenshots and video for reference.

WhatsApp Image 2025-02-16 at 13 08 34 (1)
WhatsApp Image 2025-02-16 at 13 08 34 (2)
WhatsApp Image 2025-02-16 at 13 08 34
WhatsApp Image 2025-02-16 at 13 08 35

WhatsApp.Video.2025-02-16.at.13.08.40.mp4

@gnprice
Copy link
Member

gnprice commented Feb 17, 2025

Thanks!

Marking as draft since this won't be ready for review until it has tests.

For help writing tests, the best place to ask is in Zulip in #mobile-dev-help.

@gnprice gnprice marked this pull request as draft February 17, 2025 01:57
Fixes zulip#798
showDMWarningBanner could be initialized in the initState to shouldShowGuestUserWarningPrompt(store) and Visibility wrapper could have been gotten rid off , but due to unavailability of store beforehand it was not possible.

To create the guests list, I got rid off all the users in the store which are not in the recepients list and role-checked them.
@Abhisheksainii Abhisheksainii marked this pull request as ready for review February 19, 2025 08:17
@Abhisheksainii
Copy link
Author

@gnprice I think the PR is ready for review. Let me know if I need to do some changes beforehand.

@chrisbobbe
Copy link
Collaborator

I'm seeing a lot of changes that don't look related to the work that's needed; please remove those. Also, CI is failing; you'll need to fix that.

@Abhisheksainii
Copy link
Author

I'm seeing a lot of changes that don't look related to the work that's needed; please remove those. Also, CI is failing; you'll need to fix that.

@chrisbobbe it will help a lot if you can mention the changes that seem not required, either here or I can create a topic in mobile-dev-help channel.

@chrisbobbe
Copy link
Collaborator

For example I see many changes in test/widgets/message_list_test.dart that just change the code formatting (line breaks, indentation, etc.). This is very distracting to a reader who wants to understand the meaningful, intended changes in the commit.

@Abhisheksainii
Copy link
Author

@chrisbobbe unnecessary fixes removed and CI checks passed.

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.

Notify user when DMing a guest, based on setting
3 participants