Commit graph

1516 commits

Author SHA1 Message Date
Kévin Commaille
1707a9f778
invite: Center horizontally the text for the inviter 2023-08-17 09:59:55 +02:00
Kévin Commaille
13300196c7
room: Fix updating category when room state changes
Now that the Room struct doesn't change, we need to match with the
category.
2023-08-17 09:56:37 +02:00
Kévin Commaille
6ba96d46b6
utils: Re-encode HTML special characters when rebuilding HMTL
Otherwise Pango complains about those characters
2023-08-16 16:48:52 +02:00
Kévin Commaille
4d778e8dfe
timeline: Expose method to know if we can load more events 2023-08-16 15:17:31 +02:00
Kévin Commaille
60098f930c room-history: Always check if we need to load more items when timeline is ready 2023-08-16 10:19:45 +00:00
Kévin Commaille
9e6f1afce2 timeline: Use current back pagination status to set state after initialization 2023-08-16 10:19:45 +00:00
Kévin Commaille
c363a18e5f timeline: Don't change state when Timeline is cleared.
It is not really in its initial state since it should be ready to load
more events.
2023-08-16 10:19:45 +00:00
Luming Zh
848822aa1f Update Chinese (China) translation 2023-08-15 11:55:18 +00:00
Kévin Commaille
adab4e4f60
utils: Fix rebuilding HTML in extract_mentions 2023-08-14 16:57:29 +02:00
Yuri Chornoivan
58f58f20ce Update Ukrainian translation 2023-08-14 10:14:27 +00:00
Kévin Commaille
f9fcc0df3f
ci: Pin rust-nightly image 2023-08-14 11:24:22 +02:00
Kévin Commaille
65a471416e
room-history: Allow to edit messages. 2023-08-13 19:47:46 +02:00
Kévin Commaille
e62042dd82
utils: Add function to extract mentions from HTML
It is more versatile than the precedent one that was simple string
searching, expecting the HTML in a special format, at the cost of
an added dependency.
2023-08-13 18:18:24 +02:00
Kévin Commaille
be5e2784e5
main: Use tracing-subscriber's EnvFilter
It is more powerful than the default filter.
This syntax also allows to add other layers.
2023-08-13 15:03:35 +02:00
Kévin Commaille
97de17ce62
misc: Use tracing for logging 2023-08-13 14:54:20 +02:00
Boyuan Yang
12842bbe7c Update Chinese (China) translation 2023-08-12 20:01:49 +00:00
Kévin Commaille
ba09929fe6
chore: Upgrade matrix-sdk and other cargo dependencies 2023-08-12 11:59:25 +02:00
Kévin Commaille
fa61ca6b69
secret: Try to unlock collection and item with DBus backend 2023-08-12 10:06:16 +02:00
Kévin Commaille
71f04c86e0
chore: Upgrade oo7 crate 2023-08-12 10:04:21 +02:00
Kévin Commaille
92f667b5b1 content: Fix room not unselected in sidebar when clicking on back button 2023-08-11 09:04:39 +00:00
Kévin Commaille
450631e5bf docs: Build docs for matrix-sdk-ui
Since the latest SDK update, the types that moved there are not resolved
in our docs.
2023-08-11 08:40:55 +00:00
Piotr Drąg
f01c350869 Update Polish translation 2023-08-06 15:11:24 +02:00
Yuri Chornoivan
dc66180a44 Update Ukrainian translation 2023-07-28 13:56:21 +00:00
Kévin Commaille
3e95d105d1
timeline: Add TimelineItem "ID" as a property
For debug purposes
2023-07-27 15:34:17 +02:00
Kévin Commaille
0712abd51c
timeline: Put pagination status at start of timeline 2023-07-27 15:32:36 +02:00
Kévin Commaille
c0a78fdf19 login: Check if server is a valid homeserver URL when auto-discovery fails 2023-07-27 13:02:28 +00:00
Kévin Commaille
8069076438 login: Use SDK method to sanitize server name 2023-07-27 13:02:28 +00:00
Kévin Commaille
8877b24e84 room-list: Don't load room invites twice
The issue that was in the SDK has been fixed so the invited rooms
appear twice in the list, which makes the `added` count invalid since
they are deduplicated in the list, and causes a crash.
2023-07-25 09:44:25 +00:00
Asier Sarasua Garmendia
b7bc845259 Update Basque translation 2023-07-25 09:02:49 +00:00
Kévin Commaille
5252af0722
chore: Use binding builder fns instead of glib::BindingFlags 2023-07-19 13:52:29 +02:00
Kévin Commaille
6db42e80dd
chore: Use and_(downcast/upcast)(_ref) where possible 2023-07-19 12:55:58 +02:00
Kévin Commaille
e197bfb4ef
room-details: Allow to scroll and fix margins for small form factors 2023-07-19 11:58:26 +02:00
Kévin Commaille
f4eb60a71d
explore: Filter out spaces 2023-07-19 11:30:48 +02:00
Kévin Commaille
25cadbc6e6
room: Prevent load_tombstone from being called several times 2023-07-19 11:12:10 +02:00
Kévin Commaille
b8928e82f0
session: Keep tokio runtime alive until Client is dropped 2023-07-18 18:42:31 +02:00
Kévin Commaille
bc07d95321
login: Don't nest tokio EnterGuard
Due to a fix in tokio 1.29.0, the thread would panic because the
guards are not dropped in the correct order.
2023-07-18 18:40:18 +02:00
Kévin Commaille
44be7288a5
auth-dialog: Improve type docs 2023-07-18 15:04:26 +02:00
Kévin Commaille
3b44870d9e
auth-dialog: Derive Error for AuthError 2023-07-18 15:01:27 +02:00
Kévin Commaille
62ef569458
auth-dialog: Cleanup imports 2023-07-18 14:51:59 +02:00
Kévin Commaille
ec317a0d77
auth-dialog: Implement dummy stage
It is not supposed to require user interaction so it's a waste to use
the fallback URL.
2023-07-18 14:49:56 +02:00
Kévin Commaille
e8ed5a99a5
auth-dialog: Set SSO as a preferred stage
Avoids unknown auth types to take precedence
2023-07-18 14:49:29 +02:00
Kévin Commaille
7014d4e0b8
timeline: Use GtkFlattenListModel
Simplifies the handling of extra items at the start or end of the
timeline.
2023-07-15 15:25:56 +02:00
Kévin Commaille
52100f00d7
timeline: Use SDK timeline event filter
Drop the is-visible property of TimelineItem
2023-07-15 13:50:10 +02:00
Kévin Commaille
f903fff31f
docs: Bump required Rust version to 1.70
This is the version required by matrix-sdk
2023-07-15 12:47:16 +02:00
Kévin Commaille
d06d78fe80
chore: Update matrix-sdk and ruma dependencies 2023-07-15 12:47:16 +02:00
Kévin Commaille
5b8cc97ea9
components: Fix audio player template path 2023-07-15 12:47:15 +02:00
Kévin Commaille
72e547c525
room: Make MemberRole an enum instead of bitflags
A user can only have one role at a time so it doesn't make sense to
declare it as a bitflag.

Fixes a clippy lint because the value 0 for a bitflag is the lack of any
flag.
2023-07-15 12:47:15 +02:00
Kévin Commaille
6375881df7
chore: Update cargo deps
Run cargo update
2023-07-14 13:06:43 +02:00
Kévin Commaille
7c9f0676ac
chore: Run rustfmt
Fixes formatting of let-else statements.
2023-07-14 12:08:19 +02:00
Kévin Commaille
f7069f9883
chore: Fix typos in comments 2023-06-22 10:58:56 +02:00