This was incorrectly capitalized, so I just went ahead and properly
capitalized it so we stop making this mistake!
(cherry picked from commit 80923a2025)
They changed how margins behave when there's no navigation buttons in 7b02df40381b28de97fab1dd8d97182778c242df
so we are actually adding more padding ontop of the existing one.
(cherry picked from commit d51e68e9e2)
Co-authored-by: Joshua Goins <josh@redstrate.com>
Make sure that ChatDocumentHandler can handle the document being changed to a nullptr.
BUG: 501950
(cherry picked from commit 97d5be9d81)
3f287b20 Make sure that ChatDocumentHandler can handle the document being changed to a nullptr.
Co-authored-by: James Graham <james.h.graham@protonmail.com>
It seems like the case is possible as we already are treating the case
in isUserBanned. Doesn't seem ideal as it shows "" where the username
should be but it's better than a crash.
(cherry picked from commit df9a7292b9)
Co-authored-by: Aleix Pol <aleixpol@kde.org>
This is because we only check if the last message component != Text,
because that handles it's own edit strings. Quote components do that
too, so if we don't exclude it there ends up being two (edited) strings
in one message.
(cherry picked from commit 5ef4ab0756)
This was a mistake in the code that was designed to remove the outside
paragraphs, which seems to be to make way for the quotation marks we
add around the text. Instead of doing that (which turns out, is very
brittle and breaks on multiple paragraphs) insert the quotation marks
*inside* of the paragraph tags.
A test case is added for this as well.
(cherry picked from commit 704505958e)
We realized that images don't display in link previews anymore, because
QML is terrible and this property is a QUrl, so when we call .length it
silently fails and never loads the image. This is easily fixed by
calling .toString().
There's also another bug where the title ie elided way too greedily, but
we can simplify the elision check and fix the bug at the same time.
No more "Hom..."!
(cherry picked from commit 2546d79f26)
Our HIG explicitly says we can do this for links, and these components
are literally giant links. This might also help differentiate these from
similar looking components like quotes for desktop users.
(cherry picked from commit c3404936fd)
For long links, this ends up going "off" the window (not really of
course.) One good example is Bugzilla filter URLs which are ungodly
huge. So eliding these just makes it look better, browsers do this too.
(cherry picked from commit ec635d7de3)