Element (Matrix) and Slack will render something like this as 3-5 lines with the expansion option to see all of it. I'm sure discord will eventually do the same too.
This is clearly preferable to using a different application entirely to view the snippet.
It's only IRC where some naive clients expand this out into 20 something messages where this is a problem. And since it's not part of the protocol, you're at the whims of the sender's client for how it's handled, so it's not like you can install a sufficiently smart client to render it how you like in all cases.
I'd also suggest your perspective of how much a problem even that 20 lines of text is is distorted by being in fast moving public chatrooms, like your typical Linux distro channel. In my small team or friends chat, it's perfectly fine
The same also applies to the gif. If this one bothers you, most clients even have the options to disable inline images, so the sender gets to choose. Also it means you just get the image file, and not whatever cruft the popular image host of this 5 year period is doing to monetise.
Image hosts and pastebins also seem more fragile than chat services. I've occasionally gone through old messages that link to pastie or similar and the context is gone.
Sadly true. While I don't use IRC much, looking at older posts from fora without on-forum file storage and I just see photos roughly like this Imgur example (https://imgur.com/NOnf.jpg). Heck, even older HN posts suffer from the same problem.
I can of course see the appeal of all those features, but at least for me it translates into a much worse UX in the end.
The users then use other services which have these features and the irc users claim some grand conspiracy to kill open protocols.
Discord does this already.
I'm no stranger to the IRC protocol (in fact one of my first submissions to this site 12 years ago in 2010 was an introduction to the protocol written as part of building an Android client that was my side project at the time), but I have no interest in putting in the time to make an IRC client with the experience I'd like in 2022, which is clearly a much lower bar on matrix when Element, nheko, Cinny, FluffyChat and Fractal have all managed it.
(Not affiliated, just a happy user.)
That's not a solution, that's a bad and inconvenient workaround. Having to use an external service just to share a couple lines of code is horrible for usability. Funnily enough, its also exactly the thing that IRC users complain about when the matrix bridge converts multi-line messages to links.
I assume you're trying to say this is hypocritical, but it isn't.
The problem with multi-line messages becoming links is that the message is the context of the question. You have to reach for a browser just to read what the other person wanted to say.
Things like images and pastebins are ancillary to the message. You read the text part, decide whether you want to engage with it further, and then if you do you reach for a browser to see the image or pastebin.
Compare:
<h> hey guys im trying to install blub on ubuntu but it keeps complaining that my splines aren't reticulated. full error here: https://paste.rs/id123
with: <h[m]> hey guys... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/id123)
That last one is an actual example from an OFTC channel that's bridged to Matrix. It truncated at just two words because the original message had a newline after "guys".There's nothing to file a bug about. The bridge does not (and can not without some AI or heuristics which are both fallible) know where the relevant part of the message ends and the log spew begins, so a message with a one-line description and fifty lines of logs is treated the same as a message with fifty-one lines.
I wonder what else is missing besides paste and chat there.
Edit: but the manual does: https://man.sr.ht/
did you feel that you were offering solutions or something?
Regardless of there being a better tool for syntax highlighting and holding small linkable snippets of code (so that logic doesn't need to be more to download when opening your chat) it also keeps it _out_ of the chat so it's not polluted. People not being able to instantly insert 20 lines of text is a _good_ thing. So, link to the resource don't embed it.
In the article you're responding to Drew directly mentions their suggestions for Push Notifications. I don't mean to sound facetious but, did you read this (article) in it's entirety? See above: link to the resource, don't embed it.