Malin Errenst
5943576b1b
refactor: Added type casts to match refactored matrix_api_lite
2023-06-16 12:42:10 +02:00
Krille
85a21a6781
fix: Do not store global profiles in room states as members
2023-05-31 15:01:42 +02:00
Krille
0f36659ba7
feat: Display performance warning when requesting more than 100 participants
2023-05-30 13:11:38 +02:00
Krille
9c2f026b4d
refactor: Remove unused parameters
2023-05-11 09:24:41 +02:00
Nicolas Werner
47c54cb397
fix: mark DMs as DMs properly when joining
...
If we join first, it is possible that our member event is not the invite
event anymore. As such we should fetch that state first, before joining.
But also there is little reason not to mark the room as a DM
immediately. That prevents the room from temporarily becoming a group
room, that might be visible in the UI temporarily.
fixes https://gitlab.com/famedly/company/product-management/-/issues/1006
2023-05-09 16:09:01 +02:00
Krille
f21260b035
fix: Only request users which are valid mxid
2023-05-04 15:22:44 +02:00
Krille
c6f7da12d4
fix: Check the max server file size after shrinking not before
2023-04-28 09:26:54 +02:00
Nicolas Werner
663ab11ec5
feat: Support private read receipts
...
You can either set them to private on the client or overwrite the
behaviour for that on each readMarker call. This also handles incoming
thread receipts and tries its best to figure out what is the latest
receipt. This however breaks the old m.receipt account data event.
2023-04-21 18:31:15 +02:00
Nicolas Werner
7f519b5619
Merge branch 'main' into 'main'
...
Implement Thread creating/sending + added neccessary tests
Closes #351
See merge request famedly/company/frontend/famedlysdk!1262
2023-04-17 13:15:36 +00:00
Dmitriy Bragin
203fc25d7a
feat: allow sending messages inside threads
2023-04-17 14:39:11 +03:00
Nicolas Werner
7039c33f3a
chore: Upgrade to matrix_api_lite 1.6
2023-04-17 13:23:51 +02:00
td
d8d111b1b4
chore: ignore stale call checking for archived rooms
2023-03-29 19:04:10 +05:30
Philipp Grieshofer
9aff62a18c
feat: Expose a getter for all rooms including archived rooms
2023-03-20 13:12:47 +00:00
Philipp Grieshofer
00cb292781
fix: Use MatrixLocalizations to calculate fallback user displayname
2023-03-13 15:49:05 +00:00
td
fd4577ae84
chore: stop stale group call checker on room leave
2023-02-27 11:53:08 +05:30
td
0c9e129347
fix: clean expired member state events in group calls
2023-02-14 23:08:50 +05:30
td
1219604dc9
fix: hasActiveGroup call now checks all group calls
...
fix: implement activeGroupCallEvents to get all active group call state events in a room
refactor: move staleCallChecker and expires_Ts stuff to an extension on Room, instead of Voip because it makes much more sense per room rather than on voip, also makes testing easier
fix: populate local groupCalls list on instantiating VOIP()
fix: starting stale call checker is now handled by the sdk itself because clients can forget to do so
2023-02-14 15:02:28 +05:30
Krille
bdedef9379
refactor: Check config at file sending after placing fake event and add error handling
...
This should fix the unresponsivness
of apps for a few seconds
when trying to send a file
2023-02-12 18:28:29 +01:00
td
c5d484bb13
feat: add method to generate the matrix.to link
2023-01-20 03:41:43 +05:30
Krille
05c945b042
fix: Last message set incorrectly on all session key received
...
This fixes a bug that the
last message was sent
incorrectly when a session
key received for example
from the key backup. It may
fix several issues like the
last message is set as a
very old one or the last
message is not decrypted.
2023-01-18 11:46:32 +01:00
Krille
d6c4b530c5
refactor: room displayname calculation
...
This deprecates the displayname
getter in favor of the new
getLocalizedDisplayname which
gets the default localization
by default so it can be
called without defining localizations. It adds a method
to calculate if a room is an
abandoned DM room where
it is made sure that the room
is actually empty.
2023-01-17 08:51:07 +01:00
td
1138012dd1
fix: propogate filter to getParticipants in requestParticipants
2023-01-04 03:36:51 +05:30
Nicolas Werner
58b3098f16
Merge branch 'braid/null-safe-code' into 'main'
...
fix: make some Room getters null safe
See merge request famedly/company/frontend/famedlysdk!1196
2022-12-14 22:36:29 +00:00
TheOneWithTheBraid
35a108b704
fix: make some Room getters null safe
...
- gixes huge error cause in integration tests of related apps
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
2022-12-14 21:20:14 +01:00
Reza
52d6b59cc1
fix: leaved direct chat name
2022-12-12 10:31:40 +01:00
Christian Pauly
f3287dbb99
fix: PowerLevel calculation regarding to spec
2022-11-21 10:14:28 +01:00
Christian Pauly
7caab4d086
chore: Follow up fix for request users in invite rooms
2022-11-14 08:27:47 +01:00
Christian Pauly
f8140866ae
fix: Do not request users in not joined rooms
2022-11-07 08:41:15 +01:00
TheOneWithTheBraid
ed7913e710
feat: introduce hightlighted room getter
...
- adds `Room.isUnreadOrInvited` extending `Room.isUnread` to invited rooms
This is some high-level abstraction simplifying computation of unread
room badges / notifications.
Related: https://gitlab.com/groups/famedly/company/-/epics/28
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
2022-10-26 11:51:32 +02:00
Nicolas Werner
f55bb4776a
feat: Support evaluating pushrules
...
fixes #339
2022-10-17 04:29:20 +02:00
Nicolas Werner
abbc474480
fix: Check ahead of download if a file exceeds the maximum file size
...
fixes https://gitlab.com/famedly/company/frontend/famedly-web/-/issues/539
2022-09-06 11:52:30 +02:00
Nicolas Werner
65205ea734
chore: simplify getTimeline condition a bit
2022-08-16 16:58:36 +02:00
Nicolas Werner
651abc7c14
Merge branch 'krille/add-mark-as-dm-commands' into 'main'
...
feat: Add markasdm and markasgroup commands
See merge request famedly/company/frontend/famedlysdk!1092
2022-08-15 14:19:17 +00:00
Nicolas Werner
6555f36d6d
feat: switch from pedantic to lints
2022-08-15 14:15:51 +00:00
Nicolas Werner
064b84305d
chore: Add markasdm/group tests
2022-08-09 15:33:59 +02:00
cloudwebrtc
9695a5ad10
chore: Use onRoomState to monitor group call creation and member join and leave.
2022-08-08 22:50:43 +08:00
Lanna Michalke
501ee5dce1
Merge branch 'td/add_startGroupCall' into 'main'
...
fix: check for m.call permissions in groupCallEnabled
See merge request famedly/company/frontend/famedlysdk!1088
2022-08-01 09:07:27 +00:00
td
f56e0ddb5f
fix: check for m.call permissions in groupCallEnabled
2022-08-01 14:27:10 +05:30
Lanna Michalke
05ff61ac86
chore: introduce native implementations
...
- adds Client.nativeImplementations
- deprecates Client.compute
Allows to properly implement accelerated native operations in web
Signed-off-by: Lanna Michalke <l.michalke@famedly.com>
2022-07-28 13:30:22 +02:00
Nicolas Werner
7f55e131f4
Merge branch 'td/enable_group' into 'main'
...
feat: allow enabling group calls in already created rooms
See merge request famedly/company/frontend/famedlysdk!1084
2022-07-24 19:24:43 +00:00
Jayesh Nirve
29c1241359
chore: add tests for group calls
2022-07-21 23:16:59 +05:30
Henri Carnot
2a019eaec3
feat: keep timeline history for archive rooms in memory
2022-07-21 14:14:17 +00:00
Christian Pauly
7885281c72
refactor: Use import sorter and ci templates
2022-07-21 15:44:04 +02:00
Jayesh Nirve
0aa5ef9eea
feat: allow enabling group calls in already created rooms
2022-07-20 18:44:03 +05:30
Christian Pauly
28231936b1
feat: Calc encryption health state and allow key sharing with unknown devices
...
In order to allow key sharing with
unknown devices (master key has been
verified but this device is not
signed by this master key) the
user should at least be informed.
This makes it possible to set
in the client constructor whether
the app should share keys with
unverified devices or unknown
devices.
2022-07-09 09:39:31 +02:00
Krille Fear
c3a9d64329
Merge branch 'reza/sending-queue' into 'main'
...
fix: implement sending queue
Closes #257
See merge request famedly/company/frontend/famedlysdk!1061
2022-07-01 06:34:22 +00:00
Reza
4af89c6de4
fix:implement sending queue
2022-06-30 20:16:56 +02:00
Christian Pauly
9628095ac9
feat: Implement CachedStreamController
...
This makes it possible to access the last
value of a stream at any time.
2022-06-30 09:22:53 +02:00
Nicolas Werner
21e9b802a0
chore: Update Matrix API Lite for spaces fixes
2022-06-08 12:55:16 +02:00
Christian Pauly
58cfd1f688
refactor: Rename methods and get rid of all Future getter
2022-06-08 08:30:05 +02:00
Christian Pauly
f1751a0744
refactor: Use single quotes
2022-06-07 08:53:14 +02:00
Henri Carnot
44b7247d2c
fix: add deprecation mention for getUserByMYIDSync
2022-06-02 11:13:27 +00:00
Henri Carnot
fb18843b08
refactor: make sender getter async
2022-06-02 08:13:21 +00:00
Henri Carnot
2d018d3d5f
feat: added waitForSync method
2022-05-25 10:53:52 +00:00
Krille Fear
3f3d4d38d6
refactor: Migrate to Matrix Api Lite 1.0.0
2022-05-17 22:50:04 +00:00
Henri Carnot
7e4096cc63
Merge branch 'henri/fix-remove-duplicated-fully-read' into 'main'
...
fix: remove duplicated read marker
See merge request famedly/company/frontend/famedlysdk!1033
2022-05-16 11:09:37 +00:00
Henri Carnot
bfdd4c810e
Henri/fragmented timeline v2
2022-05-16 10:54:42 +00:00
h.carnot
6c2e525a64
fix: remove duplicated read marker
2022-05-16 10:49:57 +02:00
Krille Fear
9a87850092
Revert "feat: non cached fragmented timeline"
...
This reverts commit 09b324674e
2022-05-12 09:46:29 +02:00
Henri Carnot
09b324674e
feat: non cached fragmented timeline
2022-05-03 14:08:33 +00:00
Lanna Michalke
ac16724841
chore: make Client.accountData read-only
...
- for external access, Client.accountData should be read only
- added corresponding getter and private Map
Signed-off-by: Lanna Michalke <l.michalke@famedly.com>
2022-05-03 03:29:20 +02:00
Henri Carnot
f23abcd323
feat: get fully read marker
2022-05-02 08:43:54 +00:00
Christian Pauly
bce45cbf2b
refactor: Remove old deprecations
...
They have been lived long
enough and the next version
will have breaking changes
anyway.
2022-04-22 12:44:45 +02:00
Christian Pauly
4e657f8e09
fix: Ignore no permission errors on requesting users
...
In theory even in invite or left rooms it
can be possible to request a room
state regarding the spec. In most
cases it will throw an error though.
2022-04-14 17:32:52 +02:00
Krille Fear
2f4d455eee
fix: Retry sending a file event
2022-04-08 08:41:55 +02:00
Henri Carnot
c6393c67d6
Merge branch 'henri/blurhash-fallback' into 'main'
...
feat: blurhash fallback to thumbnail one
See merge request famedly/company/frontend/famedlysdk!1002
2022-04-07 11:58:48 +00:00
h.carnot
97ca608f60
feat: check thumbnail size
2022-04-06 17:43:31 +02:00
h.carnot
f1c007c655
feat: fallback to thumbnail preview
2022-04-06 11:09:05 +02:00
Christian Pauly
cdd6111ce1
fix: Missing type check in power level calculation
2022-04-03 08:22:53 +02:00
Krille Fear
6f977b7c9d
fix: Store sending files in database and fix retrying to send them
2022-04-01 14:26:57 +02:00
Christian Pauly
117baecfb1
fix: Post load all users on room opening
...
When opening a room we need to
fetch all users from the database.
Otherwise we would need to
update the timeline per user after
creation which should be much slower.
2022-03-31 13:07:40 +02:00
Christian Pauly
6a57f99c00
feat: Pass through a custom image
...
resize function to the client
This allows the use of the
native imaging package in a more
easy way.
2022-03-30 11:15:04 +02:00
Christian Pauly
445252b3a5
feat: Pass through a custom image
...
resize function to the client
This allows the use of the
native imaging package in a more
easy way.
2022-03-30 10:35:17 +02:00
Christian Pauly
a915cdacc8
feat: Display dummy event in timeline for sending files
...
For thumbnail generation, encrypting
and uploading it is not necessary
to block the UI. The given file
event should already be displayed
in the timeline. This placed it in
the UI and adds a additional
fileSendingStatus property so the
app can fetch the current status.
2022-03-30 10:27:42 +02:00
Krille Fear
23e0d29a0d
Merge branch 'krille/try-again-sending' into 'main'
...
feat: Try again uploading file events for one minute
See merge request famedly/company/frontend/famedlysdk!986
2022-03-30 06:38:01 +00:00
Nicolas Werner
e2d2a69e45
Merge branch 'voip/move-voip-methods-from-room' into 'main'
...
chore: Move the call methods in room to the voip class.
See merge request famedly/company/frontend/famedlysdk!980
2022-03-25 23:51:55 +00:00
Duan Weiwei
cac4dc967d
chore: Move the call methods in room to the voip class.
2022-03-25 23:51:55 +00:00
Christian Pauly
f86b242dcf
feat: Try again uploading file events for one minute
...
This also refactors the code for
sending events with the same
Duration of one minute.
2022-03-25 12:54:42 +01:00
Christian Pauly
6b36d6bd79
feat: Get event in a room faster by searching in database
2022-03-24 14:10:41 +01:00
TheOneWithTheBraid
c362ead49a
feat: implement mofifying widgets
...
- add predefined MatrixWidget factories
- allow to create widgets
- allow to delete widgets
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
2022-03-24 10:40:10 +01:00
Christian Pauly
f1d422b89a
fix: Dont encrypt reactions
...
This fixes that server
sends notifications for reactions.
2022-03-15 08:42:53 +01:00
Christian Pauly
b30b340b43
fix: hasNewMessage true when last event is sent
2022-02-16 08:09:57 +01:00
Christian Pauly
01dfdb29fd
fix: Has new messages compares ts
...
This compares the origin server timestamp which might not map
to the real sort order of the timeline. But it is the best
solution for now.
2022-02-15 10:26:17 +01:00
Lanna Michalke
ade7e7e910
fix: handle dynamic content for pinned events
...
Signed-off-by: Lanna Michalke <l.michalke@famedly.com>
2022-02-14 18:18:34 +01:00
Christian Pauly
68fcee98cb
fix: Show reactions as last events and refactor hasNewMessage
...
Reactions are triggering push
notifications and should therefore
be displayed as last events
in the room list of a client.
The body should just display
the reaction key.
This fixes that rooms with
new reactions can't set to
read.
2022-02-14 15:06:22 +01:00
Christian Pauly
63e69eaa27
feat: Add hasNewMessages flag to room
...
This makes it possible to check
if muted rooms have unread
messages.
2022-02-14 10:48:57 +01:00
Nicolas Werner
4a52540006
fix: exception on removed widgets
...
And widgets without a name.
fixes #267
2022-02-13 23:11:53 +01:00
Krille Fear
84e87279e8
fix: Remove onHistoryReceived which was broken anyway
2022-02-07 15:15:44 +01:00
Christian Pauly
01d13e7e2c
refactor: Implement on history received in timeline
...
In order to make delta updates
for GUIs displaying the
timeline events easier, the
onHistoryReceived callback
has been introduced.
2022-02-03 09:38:39 +01:00
TheOneWithTheBraid
fa6bd12294
feat: implement to get a room's widgets
...
Please note that this does not implement *modifying* widgets,
as this requires a full implementation of the Matrix Integration Manager
API first. This is to be done later.
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
2022-02-02 08:38:56 +01:00
Christian Pauly
48572f8f10
fix: Trigger onChange for index on aggregation event update
2022-02-01 11:45:29 +01:00
TheOneWithTheBraid
ed6f9c06b7
feat: expose Timeline.onChange to Room.getTimeline
...
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
2022-01-26 12:52:30 +01:00
Lanna Michalke
58f6cde0bf
BREAKING CHANGE: high-level hadling of image sizes
...
- By using [package:image](https://pub.dev/packages/image ), the
`MatrixImageFile` was given automatically generated width and heigth.
- Moreover, `MatrixImageFile` was given a factory to create the image
file from a given maximal dimension.
- When sending images without explicitly providing a thumbnail, the
thumbnail is automatically generated based on the provided image.
- The blur hash in generated automatically based on the provided image.
Fixes:
https://gitlab.com/famedly/company/frontend/famedly-web/-/issues/162 , https://gitlab.com/famedly/fluffychat/-/issues/756
Signed-off-by: Lanna Michalke <l.michalke@famedly.com>
2022-01-19 13:10:17 +01:00
Marcel
1b11efc9eb
fix: Use where and map instead of a loop and a removeWhere
2022-01-17 22:06:29 +00:00
Krille Fear
bcca5e11f2
feat: Let sendDefaultMessage return false on encryption failure
2022-01-07 17:12:20 +00:00
Krille Fear
6d8fabd1e0
Merge branch 'krille/fix-request-user' into 'main'
...
fix: Requested users are not stored
See merge request famedly/company/frontend/famedlysdk!930
2022-01-04 06:28:00 +00:00
Christian Pauly
62a04b52d4
fix: Requested users are not stored
...
Fake Matrix Events for storing
need more paramters to
actually get stored. This fixes
it by creating a fake event ID
which should be unique.
2021-12-26 09:14:52 +01:00
Krille Fear
3bce8b4489
refactor: Remove unnecessary type checks and imports
2021-12-23 11:46:45 +01:00
Nicolas Werner
d687973b01
fix: fallback in body for replies to replies
2021-12-15 19:21:41 +00:00
Sorunome
b009ada0ac
fix: Allow consecutive edits for state events in-memory
...
The lastEvent was incorrect when trying to process an edit of an edit.
This fixes that by allowing consecutive edits for the last event.
2021-12-06 11:11:21 +01:00