Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for Queries duplicating and sent replies disappearing.
As the user may be initiating a query with the incorrect case on a username, it appears that the chat view was created as a lowercase of the username. When a query reply was received, it had the proper case, and would duplicate the window. Similarly, when sending a reply to a query we received, we would look up a non-existant stream due to an inconsistency of case. This workaround forces all query views to have a lower-case name. Proper resolution would be retrieving the correct username before creating the view on both the sending and receiving ends.
- Loading branch information
b9eabfe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did subway force the channel name and nick to lower case ?
I did the opposite, i remove those annoying toLowerCase() in client.js socket.js, irclink.js
and it work without side effect....
b9eabfe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason is in the commit message. There were instances of windows duplicating.
b9eabfe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b9eabfe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After removing all of the toLowerCase(), what happens if you open two windows and connect as TestUser and TestUser2, and then run "/msg testuser2 Hello" from TestUser. It should open a chat for "testuser2", but when TestUser2 replies, it will create another chat for "TestUser2".
If you will always use the proper case of the username when sending a query, you will never have an issue with this, but the vast majority of people will ignore case and let the application figure out what they want. Until we have a function built to retrieve the proper case of a username, this is the next best solution.
b9eabfe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.