Commit Graph

3189 Commits

Author SHA1 Message Date
td 281510b950
feat: lcov and tag olm tests 2024-04-23 15:21:46 +05:30
td 78e5abc0ae
Merge pull request #1769 from famedly/krille/set-power-type-safe
fix: Make room.setPower more type safe and avoid change powerlevel in RAM before sending request to server
2024-04-18 14:35:16 +05:30
krille-chan 4732580c3d
fix: Make room.setPower more type safe and avoid change powerlevel in RAM before sending request to server
This fixes the bug that the
actual dart Map in the state
has been manipulated because
we have not worked with a
copy of the map. Also this
crashes if the powerlevelmap
would had a wrong type in
users.
2024-04-18 10:56:28 +02:00
td cebc00cb39
Merge pull request #1768 from famedly/krille/use-prevbatch-for-paginating-in-search
refactor: Use prevBatch from server for pagination in event search
2024-04-18 14:11:32 +05:30
krille-chan 00616f02ac
refactor: Use prevBatch from server for pagination in event search
When using the searchEvent()
method it was impossible to
paginate to the next
chunk when one chunk had
0 returned events. This
fixes it by returning the
prevBatch and makes it
possible to insert the prevBatch
again. sinceEventId is still
working but now deprecated.
2024-04-18 10:32:27 +02:00
td efa2d6f566
Merge pull request #1765 from famedly/krille/can-change-own-powerlevel
fix: canChangePowerLevel should return true for own user
2024-04-17 16:35:50 +05:30
krille-chan edcf331bf3
fix: canChangePowerLevel should return true for own user 2024-04-17 12:56:34 +02:00
Karthikeyan S 41df6d74e6
Merge pull request #1767 from famedly/release/v0.27.0
build: Bump version 0.27.0
2024-04-16 17:57:56 +05:30
Karthikeyan S 56fc21186e
build: Bump version 0.27.0 2024-04-16 17:42:49 +05:30
td cb03e77324
Merge pull request #1766 from famedly/karthi/downgrade-sqflite-common-ffi
chore: downgrade sqflite_common_ffi to support dart sdk v3.2.0
2024-04-16 15:34:41 +05:30
Karthikeyan S 696d8859d6
chore: downgrade sqflite_common_ffi to support dart sdk v3.2.0 2024-04-16 08:45:09 +05:30
Krille-chan eac0bdb9fd
Merge pull request #1763 from famedly/td/audiomscfix
fix: remove msc3245 key from audio events
2024-04-12 12:46:30 +02:00
td 24ccf5eeff
fix: remove msc3245 key from audio events
looks like we do not support this anyway and this confuses bridges, basically removes all voice message related things from the sdk
2024-04-12 15:53:13 +05:30
Krille-chan b31a49613f
Merge pull request #1762 from famedly/krille/pass-reason-when-invite-to-room
chore: Pass reason parameter when invite user to a room
2024-04-12 11:52:18 +02:00
Krille 9099dd74c0
chore: Pass reason parameter when invite user to a room 2024-04-12 11:30:59 +02:00
Krille-chan 4ef461bb79
Merge pull request #1754 from famedly/krille/move-file-storage-to-mixin
refactor: Move file storage to mixin to not import dart:io
2024-04-12 11:11:45 +02:00
Krille 49e6d55d32
refactor: Move file storage to mixin to not import dart:io
Original issue and former solution by
The one with the braid <info@braid.business>
Special thanks for pointing out the problem.

This fixes that dart:io is imported into the
SDK database by moving it into it's own mixin which
makes it reusable and platform independent by
using conditional imports.
2024-04-12 08:51:48 +02:00
The one with the braid 87c0e7fbe8
feat: add Web build test
Signed-off-by: The one with the braid <info@braid.business>
2024-04-12 08:50:53 +02:00
The one with the braid 4ba6e25689
fix: dart:io import in matrix_sdk_database
- removes `Directory` field in high-level `MatrixSdkDatabase`
- migrates `Directory fileStoragePath` to `Uri fileStorageLocation`
- makes file operations in `MatrixSdkDatabase` conditional on
  `dart.libraries.js_util`
- implements a tiny stub of the file operations used in `MatrixSdkDatabase`

It seems like the Flutter tool can compile despite these imports. Sadly
the Dart standalone dart2js compiler doesn't reach there. While
refactorying the code, I decided it's likely cleaner to have a `Uri` as
storage location provider than using some fake directory or String as
relacement.

The advantage of a `Uri` at this place is the explicit `Uri.directory`
constructor available to ensure type and encoding safe directory
locations supporting both Windows and *nix.

Additionally, admitted, that's an edge-case, one could even
easily extend the use of a `Uri` based descriptor to support future
storage location accesses (e.g. IPFS or custom schemes for e.g. local
web browser based file system APIs). Using a `Uri`, one would only need
to override the three methods making use of the `fileStorageLocation`
property to handle different Uri schemes too.

Signed-off-by: The one with the braid <info@braid.business>
2024-04-12 08:50:44 +02:00
Krille-chan b7bc6c3b79
Merge pull request #1636 from famedly/krille/add-documentation
docs: Add documentation
2024-04-11 15:43:03 +02:00
Krille 70eb3e3431
docs: Add documentation 2024-04-11 15:36:30 +02:00
td 800ae456bb
Merge pull request #1758 from famedly/krille/do-not-use-invitor-avatar-url-for-room
fix: Do not use invitor avatar_url for room
2024-04-11 15:15:37 +05:30
krille-chan d0b1d4a651
fix: Do not use invitor avatar_url for room
When user A invites user B to
a group chat, the avatar getter
should not return the
avatar of the inviting user A.
This is not intuitive. A client might
decide to do so but IMO it makes
no sense to do this by default.
If the
room is a DM invite, user A's
avatar is already used in the
code block before.
2024-04-11 11:39:20 +02:00
Krille-chan bd52205ae9
Merge pull request #1759 from famedly/krille/make-via-field-non-nullable
refactor: Make via fields not nullable
2024-04-11 11:38:44 +02:00
Krille 849bd7ca9b
refactor: Make via fields not nullable 2024-04-11 11:32:23 +02:00
Karthikeyan S 96fd74497b
Merge pull request #1757 from famedly/karthi/audio-event
feat: add sendAudioEvent and isVoiceMessage method to msc extensions
2024-04-11 14:27:09 +05:30
Karthikeyan S 883785db86
feat: add sendAudioEvent and isVoiceMessage method to msc extensions 2024-04-11 14:12:54 +05:30
td 4bc4b14124
Merge pull request #1760 from famedly/td/exposeConstraints
fix: userMediaConstraints
2024-04-09 00:51:36 +05:30
td f7a4518c5f
fix: userMediaConstraints 2024-04-09 00:39:23 +05:30
Krille-chan 29d982b2de
Merge pull request #1749 from famedly/krille/sort-archive
chore: Sort archive by last activity
2024-03-28 09:01:33 +01:00
Krille 0e867402bc
chore: Sort archive by last activity 2024-03-26 13:30:06 +01:00
td 90ab339277
Merge pull request #1744 from famedly/td/pduFakeSync
chore: check message size before fake sync
2024-03-25 19:37:49 +05:30
td 981c3ea94d
chore: check message size before fake sync 2024-03-25 19:31:01 +05:30
Krille-chan 17ed3b255c
Merge pull request #1743 from famedly/td/apiReadme
chore: add api lite readme
2024-03-25 13:32:53 +01:00
td e08cf742e6
chore: add api lite readme 2024-03-25 17:46:59 +05:30
Krille-chan ae8094c834
Merge pull request #1736 from famedly/td/api
chore: merge api_lite and dart sdk
2024-03-25 13:00:35 +01:00
td 1df56c7756
Merge branch 'main' of github.com:famedly/matrix-dart-sdk into td/api 2024-03-25 17:22:50 +05:30
td cd94cf62a8
chore: merge api_lite and dart sdk 2024-03-25 17:22:05 +05:30
td dc895134c8
Merge pull request #1741 from famedly/td/emitOnIceFail
chore: emit handleCallEnded on ice fail
2024-03-25 17:15:59 +05:30
td 76ca4243bc
chore: emit handleCallEnded on ice fail 2024-03-25 17:09:07 +05:30
Nicolas Werner 81ebb19a5c
Merge pull request #1742 from famedly/krille/fix-delete-database
fix: Make database deleteable without the need to init the boxcollection
2024-03-25 11:45:33 +01:00
krille-chan 76a4ce7f67
fix: Make database deleteable without the need to init the boxcollection 2024-03-24 18:02:20 +01:00
td 691190f07a
Merge remote-tracking branch 'api/td/justUseMV' into td/api 2024-03-22 21:41:45 +05:30
Krille-chan 29c0bc7acc
Merge pull request #1735 from famedly/krille/change-default-test-database
refactor: Switch to MatrixSdkDatabase as suggested database and deprecate other ones
2024-03-22 17:07:10 +01:00
td b7befd781e
chore: git mv 2024-03-22 21:24:21 +05:30
Krille e266ef7312
refactor: Switch to MatrixSdkDatabase as suggested database and deprecate other ones 2024-03-22 16:05:08 +01:00
Karthikeyan S 8b2b8642b4
Merge pull request #1740 from famedly/krille/fix-typo-in-upload-key-json
fix: Typo in upload key json object creates invalid objects
2024-03-21 12:58:50 +05:30
Krille 1cb7e8f9ba
fix: Typo in upload key json object creates invalid objects 2024-03-21 08:22:15 +01:00
Krille-chan c0e34b3ab3
Merge pull request #1737 from famedly/td/v4Local
chore: update local v3 gh actions to v4
2024-03-19 14:37:29 +01:00
td aa0daec5f8
chore: update local v3 gh actions to v4 2024-03-19 13:48:41 +05:30