Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm: Do not show DMs from muted users
This commits causes DMs from muted users to be filtered out. It also fixes an issue where the DM list would appear completely blank in certain scenarios. Testing ------- CONDITIONAL PASS Device: iPhone 14 Pro simulator iOS: 17.0 Damus: This commit Setup: - Three test accounts (A, B, and C). "A" will be the account running on the device under test. - Account "A" should start with no DMs 1. Send a direct message from "B" to "A", and reply from "A". 2. Go to DMs -> DMs tab. Conversation with "B" should appear. PASS 3. Mute user "B" (I did it via profiles page). 4. Go back to DMs view via back button. DMs from "B" should not appear. PASS 5. Since there are no DMs, the screen should display "Nothing to see here". PASS 5. Close Damus app via iOS app switcher and reopen Damus 6. Check DMs list. Should only show "Nothing to see here". PASS 7. Send a DM from account "C" to "A" and reply. 8. Go back to DMs -> DMs tab. Only the message from account "C" should appear. 9. Unmute user "B" 10. Go back to DMs. Messages from "B" and "C" should appear. PASS Notes: - There was one instance when the first DM from account "C" appeared in the "DMs" tab (Not "requests") momentarily. After a bit it went into requests as expected. - When unmuting user "B", I had to refresh the DM list by switching tabs, meaning that the view did not immediately update. Upon inspection, the two behaviors above are not caused by this change, so this is a conditional pass. Closes: #1350 Changelog-Fixed: Do not show DMs from muted users Signed-off-by: Daniel D’Aquino <[email protected]> Reviewed-by: William Casarin <[email protected]> Signed-off-by: William Casarin <[email protected]>
- Loading branch information