Commit graph

533 commits

Author SHA1 Message Date
Julian Sparber
762973ce19 room-history: Show error page on loading errors
This only shows the error page when the timeline is empty.
Adds also a enum for the timeline state.
2022-02-14 20:28:44 +01:00
Kirill Schmidt
f43b1850fd event-actions: Implement Copy Emote 2022-02-14 09:13:56 +00:00
Kai A. Hiller
af8e512c45 auth_dialog: Always prefer supported stage
Changes the logic of choosing the next auth stage. Instead of using the
first stage matching the current prefix (which is always the first stage
in the list for the empty starting prefix), it now checks and prefers
those stages that are actually supported by Fractal.
2022-02-12 15:52:58 +01:00
Kai A. Hiller
5a8c85b2ff auth_dialog: Split out stage handlers 2022-02-12 15:52:58 +01:00
Kai A. Hiller
0c2b2c9310 auth_dialog: Avoid use of event type strings 2022-02-12 15:52:58 +01:00
Kai A. Hiller
d82b7ed19c auth_dialog: Add AuthError 2022-02-12 15:52:58 +01:00
Kai A. Hiller
8d89ec2d3e auth_dialog: Add doc comments 2022-02-12 10:10:08 +01:00
Daniel García Moreno
53a11894ce session: force_auth in RequestConfig
This will send the auth_token to every request, fixing the issue with
some matrix servers that requires authentication to get the user
profile and other possible issues with different servers configurations
and other API endpoints.

This change is based on this matrix-rust-sdk comment:
https://github.com/matrix-org/matrix-rust-sdk/issues/488#issuecomment-1034917858

There's also an update of the matrix-rust-sdk with a fix for the login
with force_auth option:
4b5aae1123

Fix https://gitlab.gnome.org/GNOME/fractal/-/issues/934
2022-02-11 17:16:58 +01:00
Julian Sparber
1ac16d8064 Revert "session: force_auth in RequestConfig"
This reverts commit 855c9ee8e0
2022-02-11 12:21:09 +00:00
Daniel García Moreno
855c9ee8e0 session: force_auth in RequestConfig
This will send the auth_token to every request, fixing the issue with
some matrix servers that requires authentication to get the user
profile and other possible issues with different servers configurations
and other API endpoints.

This change is based on this matrix-rust-sdk comment:
https://github.com/matrix-org/matrix-rust-sdk/issues/488#issuecomment-1034917858

Fix https://gitlab.gnome.org/GNOME/fractal/-/issues/934
2022-02-10 16:39:15 +01:00
Daniel García Moreno
5f06500e08 Set wrap property in mesage_entry
Fix https://gitlab.gnome.org/GNOME/fractal/-/issues/895
2022-02-09 18:30:27 +00:00
Kirill Schmidt
b0f8647200 event-actions: Implement remove message action
reaction-list: Add function to remove all reactions
event: Ensure that reactions are removed properly &
Ensure that reactions cannot be added if an event
was redacted
2022-02-09 18:22:08 +01:00
Kévin Commaille
c1100266ba
session: Fix typos 2022-02-08 16:12:35 +01:00
Kévin Commaille
059841ff35
reaction-group: Fix typo 2022-02-08 16:12:03 +01:00
Kévin Commaille
3079b7faca
room-history: Show audio messages in timeline 2022-02-03 11:36:50 +01:00
Julian Sparber
687fcb51d0 qr-code-scanner: Add round corners to video 2022-02-02 16:47:21 +00:00
Julian Sparber
9c433d3caa verification: Check if a camera is available 2022-02-02 16:47:21 +00:00
Julian Sparber
b73b504390 verification: Drop screenshot support 2022-02-02 16:47:21 +00:00
Julian Sparber
d2f8f105ec qr-code-scanner: Use a singleton to access the Camera
This also adds a no-camera page.
2022-02-02 16:47:21 +00:00
Julian Sparber
1aa1383897 verification: Allow to set supported methods on construction 2022-02-02 16:47:21 +00:00
Kévin Commaille
066daa2635
avatar: Do not load if size is 0
Fixes a crash in big rooms because all avatars are loaded at once
2022-02-01 18:03:29 +01:00
Julian Sparber
26d325a318 checks: Set locale to C 2022-02-01 15:35:00 +00:00
Kévin Commaille
f4611d73bb
login: Add auto-discovery of homeserver
Also check if the url provided is a valid homeserver.

Closes #769
2022-02-01 14:24:58 +01:00
Kévin Commaille
ae66b8045a
greeter: Fix devnotice 2022-02-01 14:24:58 +01:00
Kévin Commaille
1d85fab1ff
user-facing-error: Improve error messages 2022-02-01 14:24:58 +01:00
Kévin Commaille
fef17e6723
spinner-button: Fix sensitive state when action-name is set 2022-02-01 14:24:58 +01:00
Kévin Commaille
2296036d4a
data: Move non-icon SVGs to assets 2022-02-01 14:24:58 +01:00
Kévin Commaille
74cf22df84
app: Separate greeter and login screens 2022-02-01 14:24:57 +01:00
Kévin Commaille
bdfd69c64d
login: Replace custom button with SpinnerButton 2022-02-01 14:24:57 +01:00
Julian Sparber
0f499857f4 qr-code-scanner: Use gtk4-paintable sink 2022-02-01 12:36:01 +00:00
Julian Sparber
5a49bfc173 explore: Replace .content style with .card 2022-02-01 09:55:47 +00:00
Kévin Commaille
34f71ce741 members-page: Only show active members
Separate joined and invited in two lists
2022-02-01 08:36:53 +00:00
Kévin Commaille
cfe2fe0281
message-media: Use custom player
Allows to play media without sound.

Closes #881
2022-02-01 09:06:24 +01:00
Kirill Schmidt
dc5a0fa573 event-actions: Replace SimpleActions with macro
Replaces the other SimpleAction calls with the
`gtk_macros::action!` macro.
2022-01-30 11:27:38 +00:00
Kirill Schmidt
8b248c0e4a event-actions: Implement Copy for sent messages
In order to use the "Copy Text" option only on
text messages the code checks the MessageType.
The macro `action!` sets the body of the
event to the content of the clipboard.

Enhances #745.
2022-01-30 11:27:38 +00:00
Kévin Commaille
c0bd634ff9 style: Reorganize style.css 2022-01-30 10:35:56 +00:00
Kévin Commaille
6ee656706a style: Cleanup
Remove unused styles
Remove redundancies with libadwaita style
Always use named colors
Always use relative font-size
Use libadwaita styles as much as possible
2022-01-30 10:35:56 +00:00
Paul van Tilburg
4cb89519ca
Fix typos 2022-01-28 23:45:50 +01:00
Kévin Commaille
dfabd1cba4
timeline: Don't display redacted events 2022-01-26 19:45:59 +01:00
Kévin Commaille
c68e24d2e1
app: Replace imp::from_instance with obj.imp() 2022-01-24 16:52:43 +01:00
Kévin Commaille
0639b466c4 media-viewer: Unfullscreen when going back 2022-01-24 14:57:19 +00:00
Kévin Commaille
93a45ae4fd media-viewer: Use AdwFlap for headerbar 2022-01-24 14:57:19 +00:00
Julian Sparber
b31db88086 meson: Drop post install script 2022-01-24 13:18:20 +01:00
Julian Sparber
f3cc9dd09f doc: Improve readme and fix doc issues 2022-01-24 12:55:58 +01:00
Kévin Commaille
d0dbd86c5b gitignore: Add .vscode 2022-01-20 11:52:32 +00:00
Kévin Commaille
50f3d1002e
message-text: Remove 'emoji' class on non-emoji messages 2022-01-20 12:20:41 +01:00
Kévin Commaille
fe2ff7c79a
app: Apply new formatting rules 2022-01-20 09:24:22 +01:00
Kévin Commaille
3abd9fde87
checks: Use stricter rustfmt rules 2022-01-20 09:08:11 +01:00
Kévin Commaille
f1e2efd865
resources: Sort files in resources.gresource.xml 2022-01-19 23:33:40 +01:00
Kévin Commaille
4f55a4a460
scripts: Add check for resources.gresource.xml 2022-01-19 23:33:40 +01:00