Kévin Commaille
e3c34328ee
utils: Avoid to use a temp file for decoding images when possible
...
By using the new API from glycin.
8 months ago
Kévin Commaille
0e9d34dd9d
Upgrade glycin
...
Tests the beta for GNOME 49 with the loaders in the Flatpak runtime.
8 months ago
Kévin Commaille
4597519128
utils: Simplify TokioDrop API
...
It is now just a wrapper.
8 months ago
Kévin Commaille
ae53630df3
Fix new clippy lints
8 months ago
Kévin Commaille
10ed8358f9
Upgrade ruma and matrix-sdk
...
Brings in important bug fixes.
8 months ago
Kévin Commaille
908f114400
Clarify the source of session restoration errors in logs
8 months ago
Kévin Commaille
f3d7b6c2e1
utils: Don't auto-enable backups
...
We want backups to be enabled at the same time as recovery.
8 months ago
Kévin Commaille
d81a70b4c6
utils: Add functions to clean up strings before using them
8 months ago
Kévin Commaille
06cecb946e
window: Avoid showing session page every time that selected session changes
...
We use different objects for the different stages of initialization of
the session, so the selected item will change several times. However, if
the user switches to another page like the greeter, we don't want to
show the selected session page when it is loaded.
So this separates updating the session in the SessionView, and showing
the proper page for the session. We still show the proper page if we
were showing the loading screen or the SessionView.
8 months ago
Kévin Commaille
4584c0b5ec
Move sidebar_data::Selection to utils as FixedSelection
...
To be able to reuse it.
8 months ago
Kévin Commaille
34ad0aae0f
utils: Allow to change item in SingleItemListModel
8 months ago
Kévin Commaille
b4bcb46fae
Port to Rust 2024
9 months ago
David Akopov
3a6628adea
sidebar-section: signal aggregate notification count & highlight changes
...
Add notification-count, highligh and has-notifications properties to the
sidebar section model and signal on corresponding changes.
Aggregation is done as follows:
is-read := conjunction_over_all_rooms_in_section(is-read)
highligh := union_over_rooms_in_section(highligh)
has-notification := any_over_rooms(has-notifications)
notification-count := sum_over_rooms_in_section(notification-count)
Functionality of ExpressionList is reused on one of the intermediate
models to populate watches (internally on the underlying model) and signal
change of notification-count or highlight with the room indices.
This implementation recalculates the aggregate expressions via
naive iterations (discarding exactly which room(s)' values were
changed).
UI state bits are reflected accordingly to consume the signalled changes.
Fixes : #1048
9 months ago
Kévin Commaille
edac9e3381
room-history: Make sure that mentions respect safety settings
...
Gets rid of a potential attack factor.
10 months ago
Kévin Commaille
366a602260
Upgrade matrix-sdk dependency
10 months ago
Kévin Commaille
b84a584995
account-settings: Add safety setting to hide avatars in invites
...
For consistency, we also hide avatars for invites that were rejected or
retracted, if we manage to find that out for left rooms.
10 months ago
Kévin Commaille
6035b4ee37
misc: Fix new clippy warnings
10 months ago
Kévin Commaille
8b3b816005
room-history: Do not show room tombstone event in history
...
There is already a banner for this so when both are visible it looks
weird to have a duplicate.
11 months ago
Kévin Commaille
5158e408d7
utils: Simplify truncate_end_whitespaces
...
Work with char_indices, it allows us to compute the index after the char
easily.
11 months ago
Kévin Commaille
e76cf4097f
utils: Re-enable event cache storage
11 months ago
Kévin Commaille
eeff96e1db
room-history: Remove whitespaces at the beginning and end of HTML elements
...
To have the same behavior as in browsers.
11 months ago
Kévin Commaille
537d31521b
utils: Replace remove_newlines with collapse_whitespace
...
In HTML, contiguous whitespaces must be replaced by a single space, not
removed.
11 months ago
Kévin Commaille
72c44056b2
utils: Make data_dir_path a method of DataType
...
It reduces the necessary imports.
11 months ago
Kévin Commaille
5891f28548
utils: Remove timeout_future
...
Use the function provided by tokio instead.
11 months ago
Kévin Commaille
efe9189d76
session: Cache room and user profile in memory
...
Reduces the number of requests to the homeserver.
11 months ago
Kévin Commaille
426b99ec73
utils: Add extension trait for reusing child widget
...
There would be less duplication if Rust allowed generic implementations
with different bounds. Oh well…
11 months ago
Kévin Commaille
57941187dd
utils: Fix loading animated images in encrypted rooms
11 months ago
Kévin Commaille
5ea7f82c2f
room-history: Add support for Blurhashes
...
It is displayed while the media is being downloaded, or instead of the
preview if the preview is hidden.
11 months ago
Kévin Commaille
16661287c3
utils: Don't send items-changed signal for new groups in GroupingListModel
...
Sending the items-changed signal for groups after signalling that the
group was added results in duplicates for APIs that only care about that
signal, not about the actual number of items.
11 months ago
Kévin Commaille
e0a7eb4cd1
room-history: Group contiguous state events
...
They are replaced by an item that shows the count of state rows that
are hidden. This item can be expanded to show all the hidden state rows.
11 months ago
Kévin Commaille
93ccda449f
utils: Rename DummyObject to PlaceholderObject
...
"dummy" can be viewed as offensive
11 months ago
Kévin Commaille
213b5bd5dd
account-settings: Add safety setting to choose which rooms should show media previews
...
It is a global choice between all rooms, only private rooms, or no
rooms.
11 months ago
Kévin Commaille
69da78094c
matrix: Disable event cache storage
12 months ago
Kévin Commaille
2c66f77be7
notifications: Use same algorithm as libadwaita to find initials
...
To avoid avatar discrepancies between the window and the notifications.
12 months ago
Kévin Commaille
d870c1497d
misc: Use SingleItemListModel where possible
...
Instead of GListStore.
12 months ago
Kévin Commaille
d63a96c509
utils: Allow to get the JoinHandle of the spawn! macro
...
That way the result of the task can be `.await`ed if wanted.
12 months ago
Kévin Commaille
c46404cbbf
utils: Refactor toast macro
...
Simplify the rules for using the macro:
- The message must always implement `AsRef<str>`,
- The variables values must implement `ToString`,
- Trailing commas are always optional.
Use functions for code that doesn't actually need to be in the macro,
it allows to have linting of the code.
12 months ago
Kévin Commaille
065e139126
utils: Refactor and clean up
12 months ago
Kévin Commaille
b577acb584
Add support for logging in with the OAuth 2.0 API
12 months ago
Kévin Commaille
8a78a7a3bf
Revert "utils: Do not enable event cache storage"
...
This reverts commit 37fc796c9c .
1 year ago
Kévin Commaille
48f569f327
account-settings: Use SDK's OAuth methods rather than implementing our own
1 year ago
Kévin Commaille
a137928496
Upgrade matrix-sdk
1 year ago
Kévin Commaille
d78a59dfed
application: Simplify intents
1 year ago
Kévin Commaille
2e1bfefde6
timeline: Show sender for unable to decrypt events
1 year ago
Kévin Commaille
37fc796c9c
utils: Do not enable event cache storage
...
It still has issues that we don't want to have in the beta
1 year ago
Kévin Commaille
33edfe65cf
Upgrade matrix-sdk
1 year ago
Titouan Real
9ea87bd5a3
misc: Fix new clippy lint
1 year ago
Kévin Commaille
41efd8b809
location: Use a trait for API implementations instead of GObject subclasses
1 year ago
Kévin Commaille
5564609c99
Upgrade matrix-sdk
1 year ago
Kévin Commaille
7c8e4b2577
room: Count our own user's membership changes as activity
...
That way freshly joined or newly created rooms are at the top of the
list.
1 year ago