Closed louiscrc closed 1 week ago
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
75.3% Coverage on New Code
0.0% Duplication on New Code
You can already review my current implementation, this is the chore of the PR. Any further commits is about adapting the rest of the code to my new implementation, and adapting / creating tests.
This PR was closed as I renamed the branch correctly.
New Feature: Block Users
You can now really block a user!
(I already blocked @BotondAKovacs after his last review on my PR)
How does it work?
The
Profile
data class has been updated to include ahasBlocked
field, which is aList<String>
containing the user IDs of any users you have blocked.Implementation Details:
ProfilesViewModel Update:
ProfilesViewModel
has been enhanced to simultaneously retrieve the displayed user and the current phone's user.profilesViewModel.getSelfProfile()
. This will updateprofilesViewModel.selfProfile
with theProfile
of the user on the device (retrieved fromFirebase.auth.uid
).Blocking Method:
ProfilesViewModel
. It works by updating thehasBlocked
list of the phone's userProfile
to include theselectedProfile
.⚠️ Caution:
Next Steps:
ProfileView
andProfileEdit
to directly useselfProfile
instead ofselectedProfile
.