Commit Graph

3775 Commits

Author SHA1 Message Date
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
Krille-chan db49f1e196
Merge pull request #1695 from famedly/krille/use-records-check-homeserver
refactor: Use dart records for checkHomeserver method
2024-03-18 15:27:21 +01:00
Krille 2456a64f37
refactor: Use dart records for checkHomeserver method
This makes use of dart
records to return three
different values for one
method. This makes the
special class no longer
necessary just for
returning data.
2024-03-18 15:20:31 +01:00
Krille-chan 3fca8365b1
Merge pull request #1721 from famedly/krille/last-event-stored-in-room
refactor: Store lastEvent in room object instead of room state
2024-03-18 14:20:58 +01:00
Krille b90b902218
refactor: BREAKING Migrate database to new lastEvent storage method
This changes the way how the last event is stored
for each room. It is now stored next to the
room event itself in the rooms box and no longer
stored like a room state. This way we need to
bump the database version which will cause an
inital sync for the client. Be aware of this when
updating the SDK!
2024-03-18 14:11:15 +01:00
krille-chan 20073ddd49
refactor: Store lastEvent in room object instead of room state 2024-03-18 13:18:36 +01:00
Krille-chan d1cf6e2e9e
Merge pull request #1734 from famedly/release/v0.26.1
build: Bump version 0.26.1
2024-03-15 12:24:54 +01:00
Krille 1763c2dbdf
build: Bump version 0.26.1 2024-03-15 12:16:32 +01:00
Mohammadreza Moradi 8d484dbe37
Merge pull request #1733 from famedly/krille/add-commands-ignore-users
feat: Add commands /ignore and /unignore
2024-03-15 11:01:23 +01:00
Krille 0ae71fa843
feat: Add commands /ignore and /unignore 2024-03-15 10:13:11 +01:00
Krille-chan 9826bbeb7b
Merge pull request #1732 from famedly/krille/offer-ensure-not-soft-logged-out
feat: Offers client.ensureNotSoftLoggedOut() to fix using client with stopped sync loop
2024-03-14 14:56:41 +01:00
Krille 3d09219269
feat: Offers client.ensureNotSoftLoggedOut() to fix using client with stopped sync loop
This also makes sure that
the access token is
refreshed when calling
client.getEventByPushNotification()
which is porbably the most
common case for a client
with a stopped sync loop
doing network requests.
2024-03-14 14:49:47 +01:00
td 15549119db
Merge pull request #1727 from famedly/td/throwOnMaxPDU
fix: throw EventTooLarge on exceeding max fed PDU
2024-03-14 02:31:09 +05:30
td a60a0cad69
fix: throw EventTooLarge on exceeding max fed PDU 2024-03-14 01:18:10 +05:30
td dabe2fc97f
Merge pull request #1728 from famedly/td/audioProcessing
chore: add noice/echo cancelling flags to getUserMedia
2024-03-11 10:53:56 +05:30