Julian Sparber
fa37a2dea2
Fix missing referance
2022-05-09 13:58:04 +02:00
Julian Sparber
3910122fd5
Remove uneeded ref
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de >
2022-05-09 13:51:03 +02:00
Julian Sparber
2919c2d5d1
matrix-sdk: Expose method to decrypt room events
...
The also adds an enum so that the user can give many different rust
types to the decryption method.
2022-05-09 13:12:40 +02:00
Jonas Platte
0fad7b60a9
feat(base): Properly handle redacted m.room.member events
2022-05-09 12:38:22 +02:00
Jonas Platte
a2fb420635
chore(base): Use PowerLevels::for_user helper
2022-05-09 12:38:22 +02:00
Jonas Platte
6088993706
chore(base): Move MinimalStateEvent higher up the module hierarchy
2022-05-09 12:38:22 +02:00
Jonas Platte
41bcc9bdd7
chore(base): Remove unnecessary bounds on MinimalStateEvent
2022-05-09 12:38:22 +02:00
Jonas Platte
dc08d5f62b
chore: Update MemberEvent to allow redacted member events
2022-05-09 12:38:22 +02:00
Jonas Platte
985c7d7b36
chore: Inline From trait implementations for MemberEvent
...
They were each just used in a single place.
2022-05-09 12:38:22 +02:00
Jonas Platte
58bcd354f6
chore(sdk): Reduce unnecessary clones
2022-05-09 12:38:22 +02:00
Charlotte
be2a818c84
feat(base)!: Use boxed errors in StoreError and CryptoStoreError
2022-05-06 17:05:27 +02:00
Benjamin Kampmann
8b805f9f01
Merge pull request #649 from zecakeh/display-name
...
DisplayName fixes
2022-05-06 14:46:49 +02:00
Benjamin Kampmann
86b9dc5e57
style(appservice): Remove allocation and make clippy happy
2022-05-06 14:08:27 +02:00
Jonas Platte
260f888a89
chore(appservice): Fix another clippy warning
2022-05-06 14:08:01 +02:00
Jonas Platte
5907fac248
chore(base): Rewrite BaseRoomInfo::handle_redaction
2022-05-06 14:08:01 +02:00
Jonas Platte
3c8da5f7e1
feat(base): Handle redactions in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
8043b6c1e1
chore(base): Store topic event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
4e16f79ad2
chore(base): Store tombstone event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
f93baf7ed4
chore(base): Store name event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
9e058b6202
chore(base): Store join_rules event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
a5e81ebcc9
chore(base): Store history_visibility event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
aa7fc8ff47
chore(base): Store guest_access event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
849fbe94f1
chore(base): Store create event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
c9527e7263
chore(base): Store canonical_alias event's ID in BaseRoomInfo
2022-05-06 14:08:01 +02:00
Jonas Platte
9a3b81178f
chore(base): Store avatar event's ID in BaseRoomInfo
...
Required to make redactions work properly.
2022-05-06 14:08:01 +02:00
Jonas Platte
1e9e13ab63
chore(base): Use RoomInfo::room_version accessor
2022-05-06 14:08:01 +02:00
Kévin Commaille
2545e1bd72
fix(sdk): Re-export DisplayName
2022-05-06 11:35:48 +02:00
Kévin Commaille
1b8337cdc2
doc(sdk-base): Fix typo
2022-05-06 11:35:48 +02:00
Jonas Platte
b95aea9cf0
chore(crypto): Fix new clippy warning
2022-05-06 11:29:35 +02:00
Julian Sparber
12cdf8c159
chore(sdk): Use OnceCell to store server versions
2022-05-06 11:08:10 +02:00
Benjamin Kampmann
2054f5deef
docs(crypto-ffi) Fix a typo in the README.md
...
Merge pull request #645 from Hywan/doc-readme-typo
2022-05-06 08:23:28 +02:00
Benjamin Kampmann
0a6983512a
Merge pull request #646 from Hywan/doc-sdk-base-readme-typo
...
docs(sdk-base) Fix a typo in the `README.md`
2022-05-06 08:07:34 +02:00
Ivan Enderlin
977438207c
docs(sdk-base) Fix a typo in the README.md.
2022-05-05 13:42:34 +02:00
Ivan Enderlin
87b849a95b
docs(crypto-ffi) Fix a typo in the README.md.
2022-05-05 13:36:39 +02:00
Damir Jelić
3a4656cedd
Merge branch 'poljar/cleanup-verification-constructors'
2022-05-05 13:16:34 +02:00
Benjamin Kampmann
7e399e1e8d
Merge pull request #644 from matrix-org/poljar/fix-sled-cryptostore-only-compilation
...
fix(sled): Fix the compilation if only the cryptostore is enabled
2022-05-05 12:43:38 +02:00
Benjamin Kampmann
b9e92886de
refactor!: Put timeline behind experimental-timeline-feature-flag
2022-05-05 12:31:02 +02:00
Damir Jelić
2c415abce8
fix(sled): Fix the compilation if only the cryptostore is enabled
2022-05-05 12:22:16 +02:00
Benjamin Kampmann
3de2a9ad22
feat(sled): Add state store db schema version support
...
Merge pull request #640 from matrix-org/gnunicorn/issue585
2022-05-05 12:13:30 +02:00
Benjamin Kampmann
0f95687bec
fix(base): Don't create empty changeset for each run
2022-05-05 12:11:33 +02:00
Damir Jelić
2a5f17005d
refactor(crypto): Make the transaction id non-optional in the Sas constructor
2022-05-05 11:55:00 +02:00
Benjamin Kampmann
5fce18f4dd
chore: remove unneccessary feature-flag
2022-05-05 11:21:34 +02:00
Benjamin Kampmann
93b42236fe
chore: Merge remote-tracking branch 'origin/main' into b-featureflag-timeline
2022-05-05 10:33:56 +02:00
Benjamin Kampmann
26935ee1c0
Fix(room)!: Calculate display_name correctly for invited rooms
...
- [x] Make the `DisplayName` an actual type to allow API users to localize the generic name
- [x] tests for various naming use cases
- [x] fix the cases where we currently calculate a faulty name, fixes #133
- [x] strong-typed EitherMemberEvent from storage
- [x] add tests for eithermember in store integration tests
- [x] update sled store for new trait signature
- [x] update indexeddb store for new signature
- [x] rename `DisplayName::Computed` to `DisplayName::Calculated`
- [x] fix renaming failing test(s)
2022-05-04 20:04:07 +02:00
Benjamin Kampmann
ab08ce6ff1
style(sled): cargo fmt
2022-05-04 16:54:03 +02:00
Benjamin Kampmann
ae3cd70904
feat(sled): Add store db schema version support
2022-05-04 16:39:08 +02:00
Benjamin Kampmann
7b21166784
chore: Merge remote-tracking branch 'origin/main' into b-featureflag-timeline
2022-05-04 16:17:06 +02:00
Benjamin Kampmann
403ce9b711
chore: Merge remote-tracking branch 'origin/main' into gnunicorn/issue133
2022-05-04 16:10:22 +02:00
Benjamin Kampmann
98fa629f38
fix(memstore): Separate stripped and regular user indixes
2022-05-04 16:09:54 +02:00
Benjamin Kampmann
75f0fe94e8
fix(indexeddb): Separate stripped and regular user_id indixes
2022-05-04 16:02:02 +02:00