Jonas Platte
4a481f09d1
fix(base): Make tokio dev-dependency arch-dependent
2022-09-09 12:51:57 +02:00
Jonas Platte
3be8c9585d
refactor(sdk): Make SyncSettings Debug repr more compact
2022-09-08 12:13:30 +02:00
Jonas Platte
d810fa6883
test(sdk): Enable logging for tests
2022-09-08 12:13:30 +02:00
Damir Jelić
9252e2c7a9
refactor(sdk): Fetch the content using the new account data methods
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
2022-09-07 13:38:42 +02:00
Timothy Hobbs
e997da0e72
feat(sdk): Make created_dm_room public
2022-09-07 13:38:42 +02:00
Benjamin Kampmann
b3f3d0a95e
fix(sdk): proper implementation of stripped info preference
...
Merge pull request #979 from FlixCoder/cleanup
Fixes a problem, where non-stripped information of the room had predecence in all scenarios of the memory-, sled- and indexeddb-store, thought according to the spec, we prefer the full info only until we've received new stripped info (from another invite). This fixes that to be in line with the spec by removing stripped data when we see a full-event and keep stripped info preferred if found (so, after you joined, stripped data is removed and when you knocked or are invited again, it is preferred), without ever deleting full data. It also adds nice unit- and integration tests to ensure this works as intended.
2022-09-06 15:47:14 +02:00
Jonas Platte
5adec41b6b
test: Use a weak password hash for crypto-store testing
...
This speeds up the crypto-store tests a lot.
2022-09-05 16:58:12 +02:00
Flix
b816307ea9
fix: Listen only to events after sending the request
2022-09-05 16:41:55 +02:00
Flix
a182578722
fix: Fix rooms being returned in wrong state and having wrong state
2022-09-05 16:41:55 +02:00
Flix
8b5368ff06
chore: Clean up various mini things
2022-09-05 16:41:52 +02:00
Flix
a368caf2b0
test: Add StateStore integration test for stripped/non-stripped
2022-09-05 16:33:31 +02:00
Damir Jelić
a640312503
feat(crypto): Add method to format emojis
...
This patch adds a method to format a list of emojis in a a terminal
friendly way.
This method was borrowed from weechat-matrix but it's also quite useful
in our own emoji verification example.
2022-09-05 15:54:45 +02:00
Jonas Platte
a25b2d4418
refactor(crypto): Clean up cryptostore_integration_tests macro
2022-09-05 15:44:14 +02:00
Jonas Platte
edfc0cbe20
refactor(sdk): Deprecate ClientBuilder::user_id
2022-09-05 12:43:21 +02:00
Jonas Platte
91186d8a25
doc(sdk): Replace deprecated method in doctest
2022-09-05 11:55:49 +02:00
Jonas Platte
090d67b6ef
refactor(sdk): Move module-level documentation inside the module files
2022-09-05 11:55:49 +02:00
Jonas Platte
fd4957f533
test(sdk): Address commented-out code in a test
2022-09-05 11:55:49 +02:00
Jonas Platte
08760bd4c0
refactor(sdk): Make base_client field of Client private
2022-09-05 11:55:49 +02:00
Jonas Platte
b769827313
refactor(sdk)!: Move media methods from Client to a new type
2022-09-05 11:55:49 +02:00
Jonas Platte
79b5854c83
feat(sdk): Add request_config method to Client
2022-09-05 11:55:49 +02:00
Jonas Platte
38324f6c60
refactor(sdk): Use Client::send in Client::upload
2022-09-05 11:55:49 +02:00
Jonas Platte
33bce0b18d
refactor(sdk): Move RoomMember into room module
2022-09-05 11:55:49 +02:00
Jonas Platte
245ecea263
feat(sdk): Add support for AnySyncTimelineEvent in event handlers
2022-09-05 11:55:17 +02:00
Jonas Platte
d4ac1bffd0
refactor(sdk): Rename EventKind to HandlerKind
...
It's somewhat different as MessageLike, OriginalMessageLike and
RedactedMessageLike are not three distinct event kinds in Ruma.
2022-09-05 11:55:17 +02:00
Jonas Platte
d6af63e37b
refactor(sdk): Run event handlers for the same event concurrently
2022-09-05 11:55:17 +02:00
Jonas Platte
57dde2c4d3
refactor(sdk): Avoid duplicate work and fix event handler call order
...
Previously, when both a possibly-redacted timeline event handler and a
non-redacted timeline timeline event handler would apply to multiple
events in a sync response, they would individually run for every event
in order. With this change, they will instead both be called
for one event before the next is processed.
2022-09-05 11:55:17 +02:00
Kévin Commaille
6f3813a65f
Re-export vodozemac errors in a separate module
2022-09-05 11:44:42 +02:00
Kévin Commaille
433f75ae57
Remove dead error variants
2022-09-05 11:44:42 +02:00
Kévin Commaille
8f0fb08fe7
feat(sdk): Re-export matrix-sdk-crypto errors
2022-09-05 11:44:42 +02:00
Jonas Platte
4f6ff5c0d3
refactor(sdk): Make use of new Default impls from Ruma
2022-09-02 15:03:00 +02:00
Jonas Platte
c4d46f233e
chore: Upgrade ruma
2022-09-02 15:03:00 +02:00
Jonas Platte
bf9f431e22
refactor(sdk): Use new account_data method internally
2022-09-02 14:09:17 +02:00
Damir Jelić
4b673cfe9c
chore: Fix a bunch of clippy warnings
2022-09-02 11:39:06 +02:00
Damir Jelić
a71292cb16
chore(crypto): Remove a bunch of unnecessary allow deprecated attributes
2022-09-01 17:08:24 +02:00
Damir Jelić
cc813b049e
fix(crypto): Set the correct algorithm when exporting a room key
2022-09-01 17:08:24 +02:00
Damir Jelić
1b06d8ca51
refactor(crypto): Start using the customized room key request event type
2022-09-01 17:08:24 +02:00
Damir Jelić
4338d5e534
refactor(crypto): Add a customized room key request event type
2022-09-01 17:08:24 +02:00
Jonas Platte
e4267cc4fd
refactor(sdk)! Make upload take &[u8] instead of impl Read
...
The use of `io::Read` wasn't helping since we had to buffer the whole
file in memory anyways, and we are unlikely to get around that in the
near future.
2022-09-01 13:40:47 +02:00
Jonas Platte
16ac69a967
chore: Simplify integration testing macro
2022-09-01 13:11:05 +02:00
Ivan Enderlin
193da88320
feat(crypto): Rename verified and deleted to is_*
...
feat(crypto): Rename `verified` and `deleted` to `is_*`
2022-09-01 10:50:05 +02:00
Flix
f49e9be905
feat: Expose client of rooms for extensions
2022-09-01 10:01:18 +02:00
Ivan Enderlin
2e74983c79
chore: Fix other is_verified.
2022-08-31 17:16:05 +02:00
Ivan Enderlin
ffebc7c313
doc(crypto): Fix typos in the documentation
2022-08-31 17:09:33 +02:00
Ivan Enderlin
7d1b60a3b1
doc(crypto): Fix a link.
2022-08-31 16:52:00 +02:00
Ivan Enderlin
53c5158eca
doc(crypto): Update link to `is_verified.
2022-08-31 16:45:52 +02:00
Ivan Enderlin
3eab9ca8e5
feat(crypto): Rename verified and deleted to is_*.
2022-08-31 16:44:59 +02:00
Jonas Platte
d416e64a7e
refactor(sdk): Return only content from Account::account_data[_raw]
...
Since global account data events only consist of the type that is known
to the user anyways, and the content.
2022-08-31 12:19:35 +02:00
Jonas Platte
aedf807025
doc(sdk): Add an example for set_account_data
2022-08-31 12:19:35 +02:00
Jonas Platte
77afa26217
feat(sdk): Add account_data[_raw] accessors to Account
2022-08-31 12:19:35 +02:00
Jonas Platte
f1a03ececd
feat(sdk): Add public set_account_data[_raw] to Account
2022-08-31 12:19:35 +02:00