Some files could contain malicious code. E.g. htm/html files can contain
an explode to take over a web browser. This makes it a little bit harder
to open a file by mistake.
Note: this resolves a security issue that was identified by the security
audit.
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1153>
Don't print the encrypted source as it is not useful and can be obtained via
view source.
Lower log level to debug because it's common to lack encryption keys.
Print more details about the event when decryption fails to be able to find it.
This was implemented in MediaViewer, but it wasn't working because of
wrong hierarchy navigation. I've fixed this by adding a function to do
that in MediaContentViewer directly.
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1135>
data/resources/style.css: Added class for font on applying reaction
src/session/content/room_history/message_row/reaction.rs: Added check if reaction contains text or not
src/utils.rs: Added regex function for general purpose
Even if it's their primary use in clients is to send emoji reactions, reactions can actually contain any text.
We have to make sure that we ellipsize long texts, and we need to fix the font as it's currently too big.
To fix this issue, I used regex function to check whether reaction contains text or not.
https://gitlab.gnome.org/GNOME/fractal/-/issues/1044
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1134>
This also shows a infobar to the user when offline.
This completely ignores the connecticity state since it's unrelaibale
and the server may be reachable even without internet connection.
This removes the channel used to pass the sync response to the
MainContext.
This removes the extra loop to automatically restart the sync stream
since it's not needed anymore.
This also removes the oneshot channel because the tokio task is aborted
anyways when the Session object is disposed.
We only disable the new-login action when there is no network since the
user may have the homeserver in the local network or internet connection
dedection may be broken. (currently the case on my system).