Commit graph

1781 commits

Author SHA1 Message Date
Christopher Davis
d5214a1d5e fractal-gtk: Send redaction events
When moving our architecture to using GAction, the delete
action was forgotten. This meant that while "Delete Message"
showed in the UI, the button did nothing.

Fixes #515
2019-10-26 01:09:42 -07:00
Alexandre Franke
2b9349d224 Update French translation 2019-10-25 10:48:15 +00:00
Rafael Fontenelle
a04fe36293 Update Brazilian Portuguese translation 2019-10-24 14:04:58 +00:00
Piotr Drąg
68d4a4c6fa Update Polish translation 2019-10-24 15:52:19 +02:00
Alejandro Domínguez
09eca65e11 API, BackendData: remove server_url field 2019-10-23 21:08:12 +02:00
Daniel Mustieles
d4bad28fd3 Updated Spanish Translation 2019-10-23 12:16:04 +02:00
sonjita
23285c155b Fixed strings for extraction by gettext 2019-10-21 13:28:01 +02:00
Alejandro Domínguez
9882dd9cd4 API: Merge serializers and deserializers
This allows the use of #[serde(with = "")] macro
attribute for both the serializer and deserializer
instead of specifying each one separately.
2019-10-21 10:36:31 +02:00
Alejandro Domínguez
40b7ef9f0e API: Implement (de)serializers for Url and Host types
This guarantees that the (de)serialized structs which
contain URLs in any of their fields will always have
a valid URL string and not just a generic one.
2019-10-21 10:36:31 +02:00
sonjita
063e5504a0 Reload settings when verification dialog is closed
When a user wants to add a phone number or email addess, a verifikation token is sent to them and a dialog is opened to enter it.
Before the commit, after closing the verification dialog, the settings dialog was not refreshed.
Therefore the added <phone number / email adress> would stay in the input
with a spinner spinning next to it until another action was taken.

With this commit, closing the verification dialog refreshes the settings window.
2019-10-18 16:48:02 +02:00
sonjita
05ecf239b5 Fix error handling of token request verification
Same situation for email token request verification and phone token request verification:
Before, the user was always shown the error message "Couldn’t add the <email address / phone number.>",
also when the error was due to the fact that the <email / phone> was already in use.

With this commit, that bug is fixed: when the <email / phone> is already in use,
the user is shown the error message "<Email / Phone number> is already in use"
2019-10-18 16:48:02 +02:00
sonjita
aff0d6bcbe Fix deserialization of enum Medium
Before, "Medium" was renamed to "lowercase".
With this commit, "Email" and "MsIsdn" are renamed to "email" and "msisdn", respectively.

This commit fixes the bug due to which account settings wouldn't load.
2019-10-17 18:54:48 +02:00
sonjita
91a1e66a85 Display error when settings can't load
Before, when an error occurred trying to load account settings,
the user would see a spinner until pressing the "go back" button manually.

With this commit, when an error occurs trying to load account settings,
an error dialog opens. Furthermore the "go back" button is activated automatically.
In particular, when the user closes the error dialog,
they find themselves back in the state they came from.
2019-10-17 18:54:48 +02:00
sonjita
69aa16fe5e Reduce number of typing events sent to server
Before, a typing event was sent to the server on every single key release.
A lot of sent typing events were redundant due to the timeout functionality
implemented in the matrix propocol for typing events.
With this commit, this overload of events sent to the server gets avoided by
only sending a new typing event, if the last one was sent more than three seconds ago.
2019-10-17 16:22:54 +00:00
Piotr Drąg
6580761f5c Update Polish translation 2019-10-14 16:07:55 +02:00
Daniel Mustieles
54e63ac2c4 Update Spanish translation 2019-10-14 06:54:16 +00:00
Alejandro Domínguez
696c2e526d AppOp: Change identity_url field type to Url 2019-10-12 18:50:39 +02:00
Alejandro Domínguez
cfa70a3396 AppOp: Change server_url field type to Url 2019-10-12 18:50:39 +02:00
Alejandro Domínguez
ecf79bb056 Flatpak manifest: Fix typos 2019-10-12 10:52:12 +00:00
Daniel García Moreno
8c56b17f0d Merge branch 'http_only_homeserver'
https://gitlab.gnome.org/GNOME/fractal/merge_requests/467
2019-10-12 12:39:28 +02:00
Alexandre Franke
2f65437657 message: add <br> for newlines 2019-10-12 10:31:47 +00:00
Julian Hofer
bafc017d31 Removes unused and redundant variable declarations in meson.build 2019-10-12 10:29:31 +00:00
Alejandro Domínguez
54db180a28 GUI: Remove App/AppInner struct duplication 2019-10-12 09:43:43 +00:00
Christopher Davis
ef3c619bd6 Add official GNOME Code of Conduct
The GNOME Foundation has adopted a new code of conduct for
all project spaces. Since it applies to us, we should add it to our repository.
2019-10-06 17:00:35 -07:00
Damir Jelić
78a3ef7d0f login: Don't remove the Homeserver schema unconditionally.
The current Homeserver URL parsing logic unconditionally removes the URL
schema if it's either "http://" or "https://", then prepends
the "https://" schema back immediately after.

While this correctly adds a "https://" schema for an URL without a
schema, it disallows connections to a non-TLS host. Synapse, rightfully
so, disallows non-TLS connections. Connecting to such a host might be
desirable anyway to connect to a logging/debugging reverse proxy such as
mitmproxy or to connect to Pantalaimon, a reverse proxy that enables
client-transparent E2E encryption.

Closes: https://gitlab.gnome.org/GNOME/fractal/issues/520
2019-09-29 12:11:32 +02:00
Daniel García Moreno
81b3f52219 Make entry editable by default when no power_levels
For new rooms we're not receiving power_levels event, so we need to
assume that the user can write.

This is a quick fix to allow edit new rooms, but it could be better to
request power_levels to the backend when we've no this information so we
can disable the text entry if the user has no permissions to do that,
but without the information we should assume that the user is able to
write because it's the usual case.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/539
2019-09-28 10:31:46 +02:00
Bilal Elmoussaoui
11c2636c1f Gitlab CI: use template
This allows publishing nightlies.
See https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak
2019-09-27 17:01:28 +02:00
Alejandro Domínguez
e964b5ec5e BKResponse, user: remove error variants and compose over Result instead 2019-09-25 17:49:04 +02:00
Alejandro Domínguez
07b7224612 BKResponse, sync: remove error variants and compose over Result instead 2019-09-25 17:49:04 +02:00
Alejandro Domínguez
0d93f45b06 BKResponse, stickers: remove error variants and compose over Result instead 2019-09-25 17:49:04 +02:00
Alejandro Domínguez
a37d3a2ca7 BKResponse, room: remove error variants and compose over Result instead 2019-09-25 17:49:04 +02:00
Alejandro Domínguez
ebd60d48c2 BKResponse, register: remove error variants and compose over Result instead 2019-09-25 17:37:24 +02:00
Alejandro Domínguez
b3e487b559 BKResponse, media: remove error variants and compose over Result instead 2019-09-25 17:37:24 +02:00
Alejandro Domínguez
93431f5a27 BKResponse, directory: remove error variants and compose over Result instead 2019-09-25 17:21:00 +02:00
Alejandro Domínguez
04dbabf4ff API, util.rs: remove redundant query! macro branch 2019-09-25 07:04:57 +00:00
Alejandro Domínguez
f647742453 API, util.rs: dw_media() and resolve_media_url() refactor
Both functions have no mutable variables now and take a ContentType instead
of a bool and the width and height values to indicate whether the media is
a thumbnail (and its size) or the original file.
2019-09-25 07:04:57 +00:00
Alejandro Domínguez
e6c8978303 API, util.rs: move functions that are only used by one mod 2019-09-25 07:04:57 +00:00
Alejandro Domínguez
61b631795c API, util.rs: remove cache_path(), use cache_dir_path() directly 2019-09-25 07:04:57 +00:00
Alejandro Domínguez
f0fa2cd8fc API, util.rs: remove get_media(), only used once 2019-09-25 07:04:57 +00:00
Florian Anderiasch
f99f14932c Fix Rust version in README 2019-09-23 19:10:47 +02:00
Milo Casagrande
390c3605bc Add Italian translation 2019-09-23 08:31:54 +00:00
Daniel García Moreno
bd7d067ed0 flatpak: remove schema path typo migrate
This patch removes the dconf migrate path from the flatpak manifest as
we've the schema path fixed.
2019-09-23 09:16:48 +02:00
Bilal Elmoussaoui
c48bbaabef GSchema: fix schema path typo
This will cause a reset to all the user's settings.
2019-09-23 07:10:10 +00:00
Asier Sarasua Garmendia
69c089d9fb Update Basque translation 2019-09-22 16:46:40 +00:00
Daniel García Moreno
9d9bb35d42 New release 4.2.1 2019-09-21 08:58:13 +02:00
Jordan Petridis
10b1f4503c Cargo: include debug symbols in all build types
Release profile defaults to no building debug symbols making it hard
to get useful backtraces from users.
2019-09-18 19:20:05 +00:00
Alexandre Franke
75366bb150 Fix typo in French translation 2019-09-18 09:04:00 +00:00
Balázs Úr
13d2407e7a Update Hungarian translation 2019-09-14 16:17:35 +00:00
Anders Jonsson
eeb3880c6a Update Swedish translation 2019-09-13 15:44:46 +00:00
Daniel García Moreno
c3f299c617 api: Log every channel sender send error
We were ignoring channel send errors and it could be interesting to have
a log about this not sent messages.

This patch adds a new trait to extend the Result<(), SendError<T>> type
and provide a new method called expect_log, that doesn't panic on error
but logs the message in that case.
2019-09-10 15:00:41 +00:00