Bug: Showing {Username} added in the search function even after {Username} has been added
When user searches for the X person who is already added, showing added X person.
https://github.com/SamarthKadam/ChatBox/assets/90843128/1740a338-d085-41fe-b607-bd673d64644f
Instead of showing the message, it should navigate to the chat of the person user searched.
@SamarthKadam I would like to work on this issue. Assign me this !
Hey @balaraju-nerati
Looks like a good find ! I am assigning it to you, but before you raise your PR, kindly let me know your approach in fixing it.
Also let me know that whether you are a gssoc contributor ?
@Spiral-Memory Thankyou for assigning the issue. Yes I'm a gssoc'24 contributor. Please add the level of the issue too.
My approach -
When the user clicks the X person which he searched, it'll redirect to the chat of the X person if the person is already added and I'll remove the toast message.
Okay cool ! What about the user if they're not already added? If they're not, show a toast bar saying the user has been added like it is now and then redirect to his chat as well.
Hey, @Spiral-Memory Can you check the PR I have raised