-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fetch policy chats after deleting a member so that the room updates correctly #8437
Conversation
Not merging bc this is on HOLD. |
Off HOLD! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@Gonals @TomatoToaster Does this work when we try to fetch workspaceChats that don't belong to the policy member? Since we send all workspace chats here... when we end up sending that list of IDs via GetReportSummaryList, we're going to get a 404 returned to us. |
It should be fine because the only ones calling modifyEmployees should be admins. They should have access to all workspace chats that exist on the policy. |
Right but what about the employee that's getting removed? The state of their EChat client won't update to reflect that the workspace room should now be archived. |
Yes, 100% agree their clients need to be notified. The pusher event for when a policy member removed is the right solution. I also think the same should happen for other admins when a member gets added to the policy. Even though right now, we don't support multiple admins on a policy. There was some talk about doing this here: https://github.com/Expensify/Expensify/issues/201621#issuecomment-1074225114 but because of the offline doc I didn't end up adding a pusher event for that. We could add that pusher event too, or we could wait till N08 to add it because right now there isn't really a way to test it (without manually making someone an admin on a free workspace). |
Okay, @TomatoToaster - should I make a follow-up issue? |
@yuwenmemon yeah let's make a follow up issue. I have a feeling this will be forgotten about otherwise 😅. We can test multiple admin workspaces on dev. |
🚀 Deployed to production by @yuwenmemon in version: 1.1.55-2 🚀
|
Good question @Beamanator, this is not a bug! That is intended behavior. |
Thanks for confirming @TomatoToaster 👍 👍 |
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/204497
Tests/QA Steps
policyExpenseChat
beta (e.g @expensifail.com)