Kévin Commaille
cb4de68a60
utils: Move expressions to their own module
2 years ago
Kévin Commaille
86cff00cb7
app: Add support for opening matrix URIs
...
Handles `matrix:` and `https://matrix.to/ ` URIs from the command line
and registers as a `matrix:` scheme handler.
2 years ago
Kévin Commaille
4908bc84bc
event: Compare raw sources rather than pretty-printed ones
...
Should be more performant.
2 years ago
Kévin Commaille
1b8567143f
misc: Reduce conversions of string types
...
Prefer to use `&OwnedType` rather than `&Type` that needs to create
a new `Arc` with `ToOwned`.
To better keep track of those conversions, prefer `.clone` when cloning
from a reference.
Expose `_string` properties rather than convert the owned type to a
string,
then parse it back to the owned type.
2 years ago
Kévin Commaille
cf0460607f
verification: Use the SDK's changes streams
2 years ago
Kévin Commaille
94f28cd980
expression-list-model: Do not use one weak reference per item
...
Use strong references instead. Otherwise dropping the item watches for
each member of a big room takes too long.
2 years ago
Kévin Commaille
707b12b7f5
misc: Use OnceCell from std
2 years ago
Kévin Commaille
e5f82d2fe2
misc: Always use generated notify_{*}() method
...
Avoids possible errors in the name of properties and helps in case they
are renamed.
2 years ago
Kévin Commaille
8db11bf5a6
notifications-page: Add keywords settings
2 years ago
Kévin Commaille
15adbfecbe
room: Port to glib::Properties macro
2 years ago
Kévin Commaille
7869be72c1
session: Port to glib::Properties macro
2 years ago
Kévin Commaille
a110e89056
expression-list-model: Port to glib::Properties macro
2 years ago
Kévin Commaille
122484d3e1
account-switcher: Port to glib::Properties macro
2 years ago
Kévin Commaille
8cfa4bfde5
components: Port to the glib::Properties macro
2 years ago
Kévin Commaille
6390f1e984
application: Move the SessionList to the application
...
Necessary to run the app in the background or to split sessions between
several windows.
2 years ago
Kévin Commaille
c993377ed1
session-list: Handle restoring sessions in SessionList
2 years ago
Kévin Commaille
05adb8408b
user-facing-error: Do not consume errors
...
Some errors do not implement Clone and we might want to keep them
around.
2 years ago
Kévin Commaille
1c4d275394
components: Move LoadingState into utils
2 years ago
Kévin Commaille
f25bf6ef77
utils: Disconnect signals on drop for BoundObject(WeakRef)
...
This is always something we need to do anyway.
2 years ago
Kévin Commaille
992fbaeda6
chore: Fix clippy warnings
2 years ago
Kévin Commaille
31c42f76f2
macros: Fix docs
2 years ago
Kévin Commaille
7faaff93f3
Revert "room: Expose the language of a room"
...
This reverts commit c4c74c8aba .
3 years ago
Kévin Commaille
938c6765f7
Revert "room-history: Use the room's language for the spell checker"
...
This reverts commit 57b0fc8749 .
3 years ago
Kévin Commaille
d69d2c0afe
utils: Allow ExpressionListModel to watch several expressions
3 years ago
Kévin Commaille
57b0fc8749
room-history: Use the room's language for the spell checker
3 years ago
Kévin Commaille
c4c74c8aba
room: Expose the language of a room
3 years ago
Anders Jonsson
302868fdd1
utils: Fix message dialog typo
3 years ago
Kévin Commaille
1e8f1fe769
utils: Add message dialog to confirm leaving a room
3 years ago
Kévin Commaille
5bd7c6ccca
message-row: HTML escape values of HTML tag attributes
3 years ago
Kévin Commaille
f3565530ce
room: Only keep MemberList in memory when Room is shown
...
It avoids to keep a lot of members and their avatar in memory when
switching from big rooms
3 years ago
Kévin Commaille
ba15c5b12a
chore: Update gtk crate and associated dependencies
3 years ago
Kévin Commaille
6ba96d46b6
utils: Re-encode HTML special characters when rebuilding HMTL
...
Otherwise Pango complains about those characters
3 years ago
Kévin Commaille
adab4e4f60
utils: Fix rebuilding HTML in extract_mentions
3 years ago
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.
3 years ago
Kévin Commaille
97de17ce62
misc: Use tracing for logging
3 years ago
Kévin Commaille
ba09929fe6
chore: Upgrade matrix-sdk and other cargo dependencies
3 years ago
Kévin Commaille
6db42e80dd
chore: Use and_(downcast/upcast)(_ref) where possible
3 years ago
Kévin Commaille
b8928e82f0
session: Keep tokio runtime alive until Client is dropped
3 years ago
Kévin Commaille
b15c5f0c8b
session: Reorganize submodules between model and view
3 years ago
Kévin Commaille
4606d2e4eb
media-viewer: Don't use Event
...
We can only construct Event from timeline items, which we don't have
if we request events manually.
3 years ago
Kévin Commaille
925af0ec43
login: Use temporary client for logging in
...
Avoids having to clean up when we need to reset it.
3 years ago
Kévin Commaille
55d355c066
event: Don't return unused uid from get_media_content
3 years ago
Kévin Commaille
6466d76ad1
media: Use gio::File::new_tmp() to store temp files
3 years ago
Kévin Commaille
8844b9a81e
utils: Add methods to create Matrix client
3 years ago
Kévin Commaille
8506064d31
sidebar: Replace order-changed signal by watching expressions
...
Triggers fewer updates
3 years ago
Kévin Commaille
1577c8a701
utils: Simplify use of BoundObjectWeakRef
...
Avoid to have to wrap it in a `RefCell<Option<T>>`.
3 years ago
Kévin Commaille
89ee05c201
chore: Inline variables in format strings when possible
3 years ago
Kévin Commaille
b4c27f9e4b
room-details: Silence critical when topic is None
3 years ago
Kévin Commaille
f9b09cea25
components: Simplify the API of EditableAvatar
3 years ago
Kévin Commaille
7aebe25791
utils: Add type to keep track of ongoing async actions
3 years ago