Lanna Michalke
cab03aa73b
fix: Allow unpadded base64 decoding
2022-01-11 09:02:34 +00:00
Krille Fear
b472dd7b92
fix: Room Member updates should always be cached
...
I think the commit which broke it was this: e3bd0cf1 It makes sure that only important state events get cached and room member events are not important state events and so new invites have no room member events cached. It makes sense to also allow room member events here to always be cached as they are special typed.
2022-01-08 10:44:22 +01: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
Krille Fear
e9e9dcb4aa
Merge branch 'krille/newlinter' into 'main'
...
refactor: Remove unnecessary type checks and imports
See merge request famedly/company/frontend/famedlysdk!929
2022-01-03 11:45:06 +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
Krille Fear
326f1f3223
fix: Localize reactions
...
In notifications in FluffyChat we
have "Unknown event m.reaction"
for reactions. But it should just be
enough to display the body so it
should look like:
"username: :thumbs_up_emoji:"
2021-12-23 11:43:00 +01:00
Krille Fear
e5fde4f801
chore: bump version
2021-12-16 08:17:36 +00:00
Nicolas Werner
d687973b01
fix: fallback in body for replies to replies
2021-12-15 19:21:41 +00:00
Sorunome
fa5abfca92
fix: ignore 4xx errors when re-sending the to_device queue
...
The to_device queue was introduced to ensure integrity if e.g. the
server temporarily failed when attempting to send a to_device message.
If, for whatever reason, the server responds with a 4xx error, though,
then we want to ignore that to_device message from the queue and move on,
as that means that something different was fundamentally wrong. This
helps to fix the to_device queue clogging up, making clients incapable
of sending to_device events anymore, should such clogging happen.
2021-12-08 13:00:53 +01:00
cloudwebrtc
c0e4008903
fix: Store the call state, fix the invite cannot be sent.
2021-12-06 19:32:33 +08: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
Sorunome
e3bd0cf139
fix: Only save state events from sync processing in-memory if needed
...
If we dump all state events from sync into memory then we needlessly
clog up our memory, potentially running out of ram. This is useless
as when opening the timeline we post-load the unimportant state events
anyways. So, this PR makes sure that only the state events of post-loaded
rooms and important state events land in-memory when processing a sync
request.
2021-12-06 11:09:50 +01:00
Sorunome
872bc04674
fix(ssss): Strip all whitespace characters from recovery keys upon decode
...
Previously we stripped all spaces off of the recovery when decoding it,
so that we could format the recovery key nicely. It turns out, however,
that some element flavours also format with linebreaks, leading to the
user having to manually remove them. We fix this by just stripping *all*
whitespace off of the recovery key.
2021-12-05 12:19:22 +01:00
Krille Fear
43d5b1c523
fix: Add missing calcDisplayname global rules to client constructor
...
This two parameters were
already documented but
were missing in the
constructor. They can
also be final.
2021-12-03 12:34:52 +01:00
cloudwebrtc
4ebf5b2553
Merge branch 'voip/add-voip-function' of https://gitlab.com/famedly/company/frontend/famedlysdk into voip/add-voip-function
2021-12-02 23:20:16 +08:00
cloudwebrtc
61da76a26a
chore: Implement the onAnsweredElsewhere function.
2021-12-02 23:18:01 +08:00
Krille Fear
e5c8e4f4fe
chore: Time unit replacement.
2021-12-02 15:12:59 +00:00
cloudwebrtc
9bc35a216a
chore: Use `fireCallEvent` instead of emit.
2021-12-02 23:04:33 +08:00
cloudwebrtc
1f519703a8
fix: Fix the call function in flutter and dart.
2021-12-01 00:47:11 +08:00
cloudwebrtc
7efe123274
Merge branch 'main' into voip/add-voip-function
2021-11-30 22:31:10 +08:00
cloudwebrtc
edeea47dec
chore: Improve the code.
2021-11-29 22:26:18 +08:00
Krille Fear
fe2d184faf
fix: userOwnsEncryptionKeys always returns true
...
Actually the homeserver sends an
empty object in the deviceKeys map
so we need to check if this object
is there but is empty.
2021-11-28 10:37:56 +01:00
cloudwebrtc
01276bbf60
chore: add more interface for delegate.
2021-11-27 01:29:11 +08:00
cloudwebrtc
60618d1775
chore: Add WebRTC delegate interface.
2021-11-27 01:20:04 +08:00
Krille Fear
44934d5911
Merge branch 'krille/enable-e2eerecovery' into 'main'
...
chore: Enable E2EE recovery by default
See merge request famedly/company/frontend/famedlysdk!915
2021-11-26 13:05:13 +00:00
cloudwebrtc
72584d679c
chore: bump version for webrtc_interface.
2021-11-26 20:33:57 +08:00
Krille Fear
ac06864627
feat: Migrate olm sessions on database migration
...
This adds a getAllOlmSessions
endpoint to the database API and
implements them in both
implementations. This also
adds it to the database
migration.
2021-11-26 08:17:43 +01:00
Krille Fear
03418bfe8b
chore: Enable E2EE recovery by default
...
We have disabled it by default to
prevent using workarounds as
long time solutions and to not
miss bugs. But in a federated
context we can not be sure that
we all Matrix clients are ever
bug free and we have now the
onEncryptionError Stream
anyway.
2021-11-25 15:48:17 +01:00
Krille Fear
79b74e2bbf
fix: Remove user avatar
2021-11-25 09:00:59 +01:00
Nicolas Werner
64257735ac
Merge branch 'krille/limited-timeline-behavior' into 'main'
...
fix: Limited timeline clears too much events
Closes #217
See merge request famedly/company/frontend/famedlysdk!907
2021-11-23 15:06:29 +00:00
Nicolas Werner
da57be44e4
Merge branch 'krille/fix-decrypt-room-event' into 'main'
...
fix: Decrypt last event of a room
Closes #251
See merge request famedly/company/frontend/famedlysdk!904
2021-11-23 15:03:45 +00:00
Krille Fear
bc6ec5e592
Merge branch 'krille/idb' into 'main'
...
feat: Implement FluffyBox database
See merge request famedly/company/frontend/famedlysdk!900
2021-11-23 15:00:42 +00:00
Krille Fear
01eb851364
fix:
2021-11-23 15:48:18 +01:00
Sorunome
17d8b4d25f
Merge branch 'krille/add-clear-cache-command' into 'main'
...
feat: Add clear cache command
See merge request famedly/company/frontend/famedlysdk!908
2021-11-23 13:06:53 +00:00
Krille Fear
ee21121a63
fix: Workaround for null boolean
...
deviceKeysList.outdated is not nullable but we have seen this error
in production: `Failed assertion: boolean expression must not be null`
So this could either be a null safety bug in Dart or a result of
using unsound null safety. The extra equal check `== true` should
safe us here
2021-11-23 13:53:07 +01:00
Krille Fear
921c694888
feat: Add clear cache command
2021-11-23 09:48:08 +01:00
Krille Fear
9cbe1099e5
fix: Limited timeline clears too much events
...
This fixes the bug that the
limited timeline flag also
clears all events from the
current SyncUpdate in an
open timeline.
2021-11-23 09:06:30 +01:00
Krille Fear
3338da4e09
fix: Ability to remove avatar from room and account
...
To remove an avatar the
client needs to send an
empty object. This is now
possible by making the
MatrixFile parameter nullable.
2021-11-22 19:36:38 +01:00
cloudwebrtc
18af7e0642
chore: Set client to final.
2021-11-22 23:08:52 +08:00
cloudwebrtc
12df5d8cdd
chore: Use RTCFactory interface to create MediaStream, VideoRenderer.
2021-11-22 22:41:49 +08:00
Krille Fear
27c03b4fad
fix: Request history in archived rooms
...
We have just forgotten to
set the prevBatch token in
the room object.
2021-11-22 10:37:26 +01:00
Krille Fear
f3775fa5ba
fix: Decrypt last event of a room
2021-11-22 10:18:44 +01:00
Krille Fear
a61e1ae4a3
feat: Add commands to create chats
2021-11-21 13:40:41 +01:00
cloudwebrtc
5dfb196c90
chore: dart format.
2021-11-19 18:03:58 +08:00
cloudwebrtc
93b623f2d5
chore: Use webrtc interface to build the voip module.
2021-11-19 17:51:38 +08:00
Krille Fear
b99a78476a
refactor: Remove Sembast database implementation
...
It was a nice experiment but it
loading everything into memory
is just too slow for big
accounts.
2021-11-18 19:55:21 +01:00
Krille Fear
0532974022
Merge branch 'krille/sembast' into 'main'
...
feat: Implement sembast store
Closes #239
See merge request famedly/company/frontend/famedlysdk!892
2021-11-16 09:42:40 +00:00
Krille Fear
f5051a5afe
feat: Implement sembast store
...
refactor: Use typed store
2021-11-16 09:50:25 +01:00