chatcord icon indicating copy to clipboard operation
chatcord copied to clipboard

Prevent duplicate username in a chatroom

Open mrinmay7875 opened this issue 4 years ago • 1 comments

As of now we can have more than one user in a chat room. So if in a chat room if there is more than one users having the same username and then anyone of them sends a message then it becomes difficult/impossible to identify who among them sent the message.

It would be better if we could implement the feature which wont allow the user to join with a username that is already being used by one of the users in that chatroom.

mrinmay7875 avatar Feb 10 '21 12:02 mrinmay7875

A better idea would be giving a user ID to every user. If someone connects with a username for example "a" he will get a user ID. I will take the user id 123 for an example. Then , if he rejoins, with the same username, he should get the same ID. but if someone else joins, with the name "a" it should give him another user ID. For example 124. So thats a better way to do it.

RocketLauncher21 avatar Nov 25 '21 18:11 RocketLauncher21