darkwire / darkwire.io

End-to-end encrypted instant web chat

Home Page:https://darkwire.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

naming convention & right side for sender left for receiver option

navnit0707 opened this issue · comments

While Chatting I faced an issue of remembering username which was in some bizarre format so i want to add a feature of asking the user to set a username whenever they start or someone starts chat from URL.

**like just suppose chatting in a group of up to 10 will be really messy for a common mind like remembering who said what **

I want to add a better layout like the left side for receiver messages and the right side fo the sender this will help users a lot I thought.
if both this will help you or only one kindly let me know, I want to contribute.

if you have any special case or suggestion to implement these functions you can suggest me .
Screenshot (416)

IMHO, the problem with this approach is that because the chat is full screen, it may be difficult to read messages on a widescreen. Also if you have more than two users, all other users will be on the same side. I see two ways to solve this:

  • Limit the width of chat part and center the content (doesn't solve the more than 2 users problem)
  • Adopt an approach similar to Riot or Slack and repeat the sender only at each change of speaker (or after a certain period of time) as proposed in issue #125 .

The second approach seems to me to leave more freedom and more room for messages.

What do you think ?

On the other hand, for the username problem, there is already a way to change nickname using the "/nick" command. It's not necessarily intuitive so proposing something simpler might be a good idea. It would also be useful to save the nickname in the localstorage for example so you don't have to set it each time (See #127).