Commit graph

1737 commits

Author SHA1 Message Date
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
Daniel García Moreno
0b71ffdd22 api: Remove all channel sender unwraps
To avoid crashes when the channel is closed and we try to send something
we should manage the response of `send` instead of calling directly to
`unwrap`.
2019-09-10 15:00:41 +00:00
Alexandre Franke
1b7f90b388 Update French translation 2019-09-10 07:07:47 +00:00
Daniel Mustieles
aca390fedc Update Spanish translation 2019-09-09 07:34:02 +00:00
Rafael Fontenelle
479dab52dd Update Brazilian Portuguese translation 2019-09-08 11:50:59 +00:00
Piotr Drąg
b553225f56 Update Polish translation 2019-09-08 11:01:13 +02:00
Jiri Grönroos
f7095262e4 Update Finnish translation 2019-09-07 14:31:43 +00:00
Alistair Francis
f0da33329a uibuilder: Fix the room permission string
Improve the room permission string to allow translations.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-09-01 20:51:22 -07:00
Zander Brown
fbbcca777d Add British English translation 2019-08-31 09:20:42 +00:00
Alejandro Domínguez
fb77a4c163 API, Backend: replace Clone impl with derive 2019-08-29 23:07:47 +02:00
Alistair Francis
92c96ad479 fractal-gtk: Fix the deprecated range pattern
Recent versions of rust report this warning when building:
    warning: `...` range patterns are deprecated
       --> fractal-gtk/src/widgets/members_list.rs:169:14
        |
    169 |             1...49 => (i18n("Privileged"), "badge-grey"),
        |              ^^^ help: use `..=` for an inclusive range

Fix the warning by just searching and replacing the deprecated code.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-08-27 02:34:27 +00:00
Piotr Drąg
9132438717 Update Polish translation 2019-08-25 18:35:40 +02:00
Alistair Francis
6bc2e46f14 fractal-gtk: Block out the text box when we can't send
When a user doesn't have permission to send a message to the room let's
block out the text box.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-08-23 18:14:17 +00:00
Alistair Francis
e1c2153caa fractal-gtk: Disable text entry if the user doesn't have send permission
Disable the ability to write text in rooms where the user doesn't have
write permission.

This fixes: https://gitlab.gnome.org/GNOME/fractal/issues/500

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-08-23 18:14:17 +00:00
Alistair Francis
45939221bc fractal-gtk: Rename power_levels to admins
The current power_levels variable really only describes the admins
(hence the call to get_admins()) so let's rename it to be more accurate.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-08-23 18:14:17 +00:00
Daniel Șerbănescu
aea9d5be85 Add Romanian translation 2019-08-23 08:16:07 +00:00
Daniel Pauls
748ab68d01 directory: Remove duplicate entries for rooms
Currently when opening the room directory and scrolling down, the
already existing rooms will get appended to the list as well as the
new ones causing duplicates.

Only appending new rooms fixes this issue.
2019-08-20 23:04:35 +02:00
Daniel Pauls
2b4c2e8ed6 directory: Rename set_directory_rooms to append_directory_rooms
A function in directory.rs is currently called set_directory_rooms, but
it's used in a way so that it appends rooms to the directory list.

Renaming the function to append_directory_rooms will clarify what it's
actually doing.
2019-08-20 23:04:35 +02:00
Alejandro Domínguez
50803772f2 API, user: Separate endpoint connection from query build 2019-08-20 20:21:52 +00:00
Alejandro Domínguez
587a8c3caf API, register: Separate endpoint connection from query build 2019-08-20 20:21:52 +00:00
Alejandro Domínguez
1142c83e9a API, sync and filter: Separate endpoint connection from query build 2019-08-20 20:21:52 +00:00
Alejandro Domínguez
962143c95d API, directory: Separate endpoint connection from query build 2019-08-20 20:21:52 +00:00
Daniel Pauls
37ea7c77aa autocompletion-popover: Fix misplacement on small window widths
Currently the autocompletion-popover has a margin-left in its stylesheet
which does look misplaced if the window has a small width.

To fix this remove the left margin of the autocompletion-popover once the
transition between the 'narrow' and 'non-narrow' mode happens.

Fixes https://gitlab.gnome.org/GNOME/fractal/issues/516
2019-08-17 19:51:03 +00:00
Christopher Davis
57945eecad fractal-gtk: Migrate to GtkSourceView4
GtkSourceView3 is no longer updated.
2019-08-10 23:35:12 -07:00
Christopher Davis
f029e514b6 flatpak: Pin gspell to 1.8.1
gspell currently has an issue that causes a build
failure. This commit is necessary to fix CI and development
builds until gspell is fixed.
2019-08-10 23:32:56 -07:00
Julian Hofer
601fa03d1a Update .gitlab-ci.yml
Remove double mention of 'MANIFEST_PATH: "flatpak/org.gnome.Fractal.json"'
2019-08-08 19:26:25 +00:00
worldofpeace
7d72de60de scripts: make executable 2019-08-01 16:47:13 +00:00
worldofpeace
2778acdc6c Cargo: update .lock file 2019-07-30 14:39:21 -04:00
Daniel García Moreno
65ed458295 Release 4.2.0 2019-07-27 09:30:29 +02:00
Daniel García Moreno
fabb950060 fractal-gtk: Don't call quit on window delete event
The quit method of AppOp was called twice because it was called on the
window delete event closure and also in the app shutdown. This patch
removes the call in the window delete event so we only left one call.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/506
2019-07-27 08:24:14 +02:00
Christopher Davis
197e063157 directory: Adapt room directory for mobile sizes
Makes it so that the room directory can scale down to mobile
sizes.
2019-07-19 13:15:15 -07:00
Christopher Davis
fbf8162f8a build: Bump required libhandy version
This is required if we want to use the new widgets like HdyHeaderBar and HdySqueezer.
2019-07-19 12:59:17 -07:00
Christopher Davis
d4af8fb48e Cargo: Update dependencies
The latest version of the libhandy bindings requires an
update to the latest version of the gtk-rs bindings. This
update comes with a few changes, including the removal of the
`Into<Option<T>` pattern in favor of explicitly using `Some(T)` for options.
2019-07-19 12:59:17 -07:00
Christopher Davis
2158b64a4b markdown: Enable highlighting during the initial load
Previously we did not enable syntax highlighting if the user
already had markdown enabled during startup. This commit
ensures that we enable it.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/302
2019-07-16 18:10:21 +00:00
Christopher Davis
fba59402d3 build: Set panic = abort for all build profiles
This change makes it easier for tools like coredumpctl
to detect panics.
2019-07-16 18:09:29 +00:00
Daniel García Moreno
76d93a20c0 Reload active room on rooms update
We need to select again the active room when we clear the room list and
we've one active room so we can reload the list of messages.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/404
2019-07-13 06:01:53 +00:00
Daniel García Moreno
d5a85f436d Get the list of direct rooms before update
We only get the list of direct rooms in the initial sync so that list is
not up to date. This patch reloads the direct rooms hashmap before
trying to update to avoid remove existing direct chat rooms.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/203
2019-07-11 23:47:24 +00:00
Kukuh Syafaat
f561bcb515 Update Indonesian translation 2019-07-11 07:07:16 +00:00
Daniel García Moreno
c5c17a492f Use lazy_load_members in sync
Instead of ignore member events we can use the lazy_load_members filter
flag to retrieve only relevant members.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/432
2019-07-08 08:16:41 +02:00
Alistair Francis
de8c3cb677 app: Use gtk_window_present for activation
GTK 3.24.7 has fixed the gtk_window_present() not working in Wayland
issue described here: https://gitlab.gnome.org/GNOME/gtk/issues/624.

Since this has been fixed update our minimum GTK version and use the
present() function.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-07-02 21:28:25 -07:00
Rasmus Thomsen
95ee205a06 Cargo: update .lock file 2019-07-02 08:51:35 +02:00
Daniel García Moreno
def9fe0841 Show room detail info in 1:1 rooms 2019-07-02 06:35:24 +00:00
Daniel Garcia Moreno
64540c9f5c Apply suggestion to fractal-matrix-api/src/backend/room.rs 2019-07-02 06:06:09 +00:00
Daniel García Moreno
1dbb81e1fe Ignore self typing notifications 2019-07-02 06:06:09 +00:00
Daniel García Moreno
0e55e01e40 Send typing notifications 2019-07-02 06:06:09 +00:00