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
Flix
df4ee7db4c
test: Add test for repeated joining and leaving
2022-09-05 16:33:31 +02:00
Damir Jelić
321e56cff8
fix(examples): Listen to the done event in the emoji verification example
...
Nowadays all verifications send a done event, so this is the safer
option.
2022-09-05 15:54:45 +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
Damir Jelić
b2452ae92c
feat(examples): Add a verbosity flag to the emoji example
...
Since this example prints out messages to stdout, it becomes quite hard
to see when we ask for user input if all the logging is going on.
This patch adds a standard verbosity flag which disables all logging by
default.
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
5f6775f47c
ci: Only cancel running CI for previous commits on PRs
2022-09-05 15:01:38 +02:00
Jonas Platte
c2a222278d
ci: Consistently indent job steps
2022-09-05 15:01:38 +02:00
Jonas Platte
567b230cb7
ci: Cache xtask binary
2022-09-05 15:01:38 +02:00
Jonas Platte
8535c16bc8
ci: Don't require fmt to run before typo check and clippy
2022-09-05 15:01:38 +02:00
Jonas Platte
d009d0475e
ci: Move appservice and style back into ci workflow
...
Required for job dependencies.
2022-09-05 15:01:38 +02:00
Jonas Platte
6b8cf3c02a
chore: Remove pre-commit configuration and CI job
...
It was not really being used.
2022-09-05 15:01:38 +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
Damir Jelić
faf0ce5007
chore(examples): Remove some empty useless attributes
2022-09-02 14:54:33 +02:00
Damir Jelić
c5e6178b70
refactor(examples): Add proxy support to the emoji verification example
2022-09-02 14:54:33 +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
Benjamin Kampmann
0079f1d569
Merge pull request #977 from zecakeh/fix-examples-autojoin
...
fix(examples): Fix examples that accept invites
2022-09-02 11:14:40 +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
4c98dfb42a
feat(bindings): Enable socks proxy support in matrix-sdk-ffi
2022-09-01 15:07:15 +02:00
Jonas Platte
dacaef3ddd
fix(bindings): Reduce scope of RwLock read lock
...
Fixes a clippy lint.
2022-09-01 13:40:47 +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
Ivan Enderlin
0d6a19e388
chore: verified has been renamed is_verified.
2022-09-01 10:35:51 +02:00
Flix
f49e9be905
feat: Expose client of rooms for extensions
2022-09-01 10:01:18 +02:00
Jonas Platte
a954518d73
ci: Stop ignoring .lock files in typos config explicitly
...
Typos now ignores .lock files automatically without any configuration.
2022-09-01 09:33:40 +02:00
Damir Jelić
16d9ed230a
chore(examples): Use automatic links for some URLs
2022-08-31 18:43:47 +02:00
Ivan Enderlin
82b647a888
doc(crypto): Fix typos in the documentation
...
doc(crypto): Fix typos in the documentation
2022-08-31 17:26:56 +02:00