multiline/monospaced chat messages#1859
multiline/monospaced chat messages#1859passing wants to merge 1 commit intojamulussoftware:masterfrom passing:multiline_chat
Conversation
…rts) apply monospaced format on multiline chat messages in server
|
Thank you! This needs changes on the client and server side? How do we ensure that users don’t get confused why it "doesn’t work" because a server is not up to date? |
On an old server, the multiline messages with be merged into a single line |
|
Either the client gives a warning (as placeholder text (?)) or we leave it like that. |
|
The client knows the server version. It shouldn't be operating in this mode unless the server is offering the feature. It should revert to the existing behaviour. It should only offer this if requested, too (so a client settings entry is needed). The server should also need configuring to offer it, perhaps - not sure on whether that's really needed, though. |
|
@pljones The chat window will start with the existing behavior:
Note that this doesn't really change what a client is sending to the server. You can actually already enter multiline messages in the single-line input field by just copying&pasting them from somewhere. The 2nd input mode just makes this easier. Btw. I had described how I wanted to implement this and asked for feedback here #1021 (comment) . You probably just missed that - but not having got any objections I proceeded. |
|
Sorry, missed the link in the top post of the PR, yes! Having the option on the chat window is good, the short cut is even better. I'd still like the client to check the server version and only "make it easy" when it's going to actually work. I'm not particularly fussed about the server side option, to be honest, so long as it's not opening things up. Work was done to cut down what text was allowed through the server at one point. That part looks fine. |
I'm not sure about this. Right now the chat dialog even allows for sending a message even you are not connected to a server (it will just disappear then). So disallowing multiline messages on older servers will need quite some extra code / additional complexity, especially when you want to react to switching from a new server to an old server. |
Given that both options have downsides, I'd go for the technically simpler option 1 of offering this feature unconditionally (and maybe outlining the requirement in the changelog). I'd rather not make this server-configurable unless there are specific reasons to do that. (Haven't looked at the code in detail yet) |
|
I can't see anything on the server side that would need to be configurable - it maintains the safety, just adds the Having broken things not get improved because they're already broken isn't a good argument, in my view. It generally means people don't make things better. |
|
Just to add
What, more confusing that having no indication that it's not going to work until after you've spent time formatting the input, only to lose your effort when the server doesn't add the tags? |
|
Closing as this needs more alignment: #1021 (reply in thread) |
|
Thanks for the effort so far and the explanation in the discussion of where we've got to, @passing. |




#1021
add multiline input mode in the chat dialog (disabled when client starts)
apply monospaced format on multiline chat messages in server