shazow / ssh-chat

Chat over SSH.
https://shazow.net/posts/ssh-how-does-it-even/
MIT License
5.59k stars 408 forks source link

main: Autocomplete deprioritize own name #355

Closed pavelz closed 4 years ago

pavelz commented 4 years ago

Current user is moved to the last item on the name lookup list.

Fixes #314.

shazow commented 4 years ago

One more request if possible:

Would you mind fixing https://github.com/shazow/ssh-chat/blob/3b8e644c9e4d22ecb05a222ab6c0dfa7e04e9532/chat/message/user.go#L261 to use user.joined if user.lastMsg is zero-value?

pavelz commented 4 years ago

to use user.joined if user.lastMsg is zero-value? sure!