Bug 228645 - Jarring forth-and-back when changing nicks using the drop-down
Summary: Jarring forth-and-back when changing nicks using the drop-down
Status: CONFIRMED
Alias: None
Product: konversation
Classification: Applications
Component: inputline (show other bugs)
Version: 1.5-rc1
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-26 18:21 UTC by Johannes E. Krause
Modified: 2013-04-15 01:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes E. Krause 2010-02-26 18:21:04 UTC
when i use the mouse wheel on the nick selection, it it shows the new nick, then jumps back to the previous nick for a short time, before showing the new nick again when confirmation from the server arrives

next to the input line is a dropdown where i can choose alternate nicknames, when i select a different one, it switches back and forth visually
Comment 1 Eike Hein 2010-02-26 18:37:47 UTC
Konversation is behaving correctly here on a technological level: IRC is "server as authority", i.e. Konversation doesn't dictate a nick change to the server, it asks to be given a different nick, and only when the server announces in response that one's nick has changed can Konversation assume that different nick to be its own. The corollary to that is that a server can also refuse such a request (e.g. because the desired nickname is already in use), so Konversation can't just assume it will go through and show the chosen nick in the combobox.

Since most users are unaware of that technological background, though, it might be a good idea to introduce a delay in the combobox switching that would mask what is going on to optimize for the case in which a nick change is successful. I.e. there would be no forth-and-back because the chosen nick would stick around in the combobox long enough until the server announces the nick change, at which point the combobox would show it anyway.

The downside to a naive implementation of that would be the combobox lagging behind the chat text view in case the server announces a refusal to implement the nick change (which would be shown in the chat text view). Known refusal messages (e.g. the standardized message for the desired nick already being in use) would have to feed back into the combobox and cause an immediate reset to the previous nick, adding considerable complexity to the implementation, and unknown refusal messages would still retain the lag problem. This might still be a worthwhile enterprise as time permits, however.
Comment 2 Myriam Schweingruber 2013-04-14 09:11:32 UTC
There currently is a delay of 20 seconds to avoid too fast nick switching so the mouse wheel triggers a channel error 438 message. I guess this confirms the issue, but is also something that would need to be implemented, moving to wishlist.