Nicolas Werner
8b8a647cf9
chore: enable discarded_futures lint
...
BREAKING CHANGE: This changes the runInRoot method to not return a
future. As a user, if you need the result of an async computation passed
to runInRoot, please await it directly. Also the KeyVerification start
and a few call methods now return a future.
2023-11-17 12:59:27 +01:00
Nicolas Werner
5dc3adadfc
chore: enable avoid_bool_literals_in_conditional_expressions
2023-11-17 12:59:27 +01:00
Nicolas Werner
a0970b7fcb
chore: don't manually enable default rules
2023-11-17 12:59:20 +01:00
Nicolas Werner
e03826b1bb
Merge branch 'main' into krille/better-syncloop-error
2023-11-16 22:21:59 +01:00
Nicolas Werner
0b3542730d
Merge branch 'main' into krille/store-presences
2023-11-16 21:36:13 +01:00
Krille
d1bbf57b6f
fix: Set presence when loading archive
2023-11-15 14:18:48 +01:00
Mohammad Reza Moradi
d5447c62f7
fix: hangup on call crash
2023-11-15 08:49:35 +01:00
Krille
8cc863b1a3
feat: Store presences in database
2023-11-15 06:59:58 +01:00
td
1ab06cb01a
fix: clear local database on logout even if server timesout
2023-11-13 18:12:47 +05:30
Karthikeyan S
243275d644
Merge branch 'main' into karthi/fix-hangup-timeout
2023-11-06 17:31:22 +05:30
krille-chan
b1b2b2ffe2
fix: catch correct exception type for connection problems
2023-11-05 09:52:08 +01:00
Nicolas Werner
37582a3a8e
fix: stale call checker leaks memory
2023-11-04 00:30:14 +01:00
td
579b8aa944
Merge branch 'main' into karthi/fix-hangup-timeout
2023-11-03 19:22:01 +05:30
Karthikeyan S
88110773ab
fix: call hangup on timeout race condition
2023-11-03 16:05:37 +05:30
Nicolas Werner
82492f92e1
chore: upgrade lints
2023-11-02 10:20:33 +01:00
Nicolas Werner
620187c772
Merge branch 'main' into braid/store-left-rooms-in-archive
2023-11-02 08:49:48 +01:00
Krille
f0e4232930
refactor: Wait for room in sync until sync process and trigger cleanup call not before actually start clean up.
2023-10-23 12:30:14 +02:00
Krille
6f144198b7
fix: Do not convert linebreaks in pre blocks on markdown parsing
2023-10-23 08:39:26 +02:00
The one with the braid
5dea95f02c
fix: Code style
...
Signed-off-by: The one with the braid <info@braid.business>
2023-10-20 14:58:56 +02:00
Clemens-Toegel
f1fd6f43f9
chore: remove archived room on forget ( #2 )
...
Co-authored-by: Clemens Toegel <clemens.toegel@x-tention.at>
2023-10-20 14:04:11 +02:00
Clemens-Toegel
0ec6a64cc8
chore: store states to archived rooms ( #1 )
...
* chore: store states to archived rooms
* chore: PR fix
---------
Co-authored-by: Clemens Toegel <clemens.toegel@x-tention.at>
2023-10-20 14:04:11 +02:00
The one with the braid
053dddb76d
chore: incrementally add left rooms to archive
...
- store left rooms in archive during sync (as well as they are removed
on join already)
- refactor room archive code
- fix typo
Internal reference: SMC-385
Signed-off-by: The one with the braid <info@braid.business>
2023-10-20 14:04:11 +02:00
Krille
4e310f16d5
feat: Add methods to load all room keys from online key backup
...
This makes it possible to load
and sync all room keys
right after the bootstrap if the
app wants to do this.
2023-10-20 12:13:12 +02:00
Ray
4b51c1c5fd
fix: fixed hardcoded historyCount
2023-10-20 11:25:45 +02:00
Krille
5c3c85ba3d
refactor: Trigger upload keys on sync and not in background job and upload them before logout
2023-10-20 10:18:05 +02:00
Krille
b5b5cfee5e
fix: Convert linebreaks into br tags on markdown parsing
...
Removes two test cases in the markdown test which do not work anymore.
Reason for this is that just parsing a word inside of $$ word $$
katex is not valid anyway because katex is only made for mathematical
things. So the output is undefined behavior anyway.
2023-09-29 09:24:50 +02:00
Krille
5dd444daf2
refactor: Update markdown
2023-09-28 08:09:17 +02:00
Nicolas Werner
97bf7723dd
fix: Wait for rate limit to pass while sending messages
...
Otherwise the user can't handle that exception themselves, since we
don't rethrow.
2023-09-21 13:04:57 +02:00
Krille
8ac86a883d
feat: Implement member change type
...
For easier handling and
comparing of m.room.member
state events to better
know what these event
actually changes.
2023-09-19 16:19:42 +02:00
Nicolas Werner
dab7f6667e
Merge branch 'main' into nico/fix-okb-bootstrap
2023-09-19 14:02:18 +02:00
Nicolas Werner
bf51e57e78
chore: remove redundant log message
2023-09-19 12:24:06 +02:00
Nicolas Werner
3fb77383a3
fix: wait for online key backup key to be cached on reset
...
Otherwise uploading the keys won't work, since the key backup is
"disabled".
2023-09-18 17:16:43 +02:00
Nicolas Werner
500e423c00
fix: storing the end of history pagination
...
At least in our CI this throws a null assertion error and since we
explicitly expect this to sometimes be null in our code, we should store
it as such.
2023-09-18 12:02:06 +02:00
Mohammad Reza Moradi
c38cbbc8dc
fix: apply state event before decryption on leaved room
2023-09-18 11:33:17 +02:00
Nicolas Werner
5b47a647b6
fix: userOwnsEncryptionKeys returns true for empty device lists
2023-09-13 14:26:41 +02:00
Nicolas Werner
cce3646339
fix: startDirectChat might return an unjoined room
...
If you create DM room, but the other party doesn't join it, they might
be unable to create a new DM using startDirectChat. Since creating a new
DM is pretty much the same as joining the invite, we try to join the
pending DM invite first and fall back to creating a new room if that
fails.
2023-09-04 13:27:55 +02:00
mErrenst
b17f3a47f2
Merge pull request #1547 from famedly/krille/request-participants-cache
...
feat: Add option to not cache users in memory when requesting all of …
2023-08-16 09:15:56 +00:00
krille-chan
0c60ad7acd
feat: Add option to not cache users in memory when requesting all of a room
2023-08-13 08:16:11 +02:00
Krille
dd64f4702a
fix: Has new messages is never true
2023-08-10 08:44:07 +02:00
The one with the braid
30c27f00a1
fix: direct message room name computation
...
Signed-off-by: The one with the braid <braid@famedly.com>
2023-08-04 08:17:17 +02:00
Nicolas Werner
4addccd9da
Merge pull request #1534 from famedly/nico/simplify-sorting
...
refactor: simplify UIA stage selection logic
2023-08-01 08:56:56 +00:00
Nicolas Werner
59693b7375
refactor: simplify UIA stage selection logic
...
(Also prevents a potential out of bounds exception)
2023-08-01 10:31:55 +02:00
Nicolas Werner
b27fd4575d
Merge pull request #1535 from famedly/nico/fix-okb-reset
...
Make online key backup reset actually backup keys
2023-08-01 08:24:25 +00:00
Nicolas Werner
a016709a40
feat: Upload keys on OKB reset
...
This does make the reset take longer on big accounts, but otherwise
users might sign out before the keys are uploaded, which makes the reset
more destructive than necessary. In the common case of not having any
keys it shouldn't make a difference.
2023-07-31 17:31:04 +02:00
Nicolas Werner
eb0759caf5
fix: fix upload of old session after reset
...
Otherwise we would need to wait for a new inbound session to upload
them. It might increase disk usage a bit every 10 minutes.
2023-07-31 17:31:04 +02:00
Nicolas Werner
334c9e3b78
refactor: Simplify room sorting logic to make invite sorting more obvious
...
It wasn't quite obvious that invites were always sorted at the top, if
you just looked at the sort function. This makes it more explicit and
also makes invites always sort before favourited rooms.
2023-07-31 10:55:27 +02:00
td
66a53786e7
fix: do not proceed call if getUserMedia fails
...
fix: added a few missing awaits
fix: add a workaround for not having state updates for staleCallChecker till sync
chore: fix some logging
2023-07-10 14:19:16 +05:30
td
d042f9e6ae
chore: pass event to redactedAnEvent and removedBy
2023-07-04 17:09:23 +05:30
td
538865f62a
chore: cleanup some eventTypes and unused variables
2023-06-27 13:46:39 +05:30
td
bfda82bb45
chore: fix unexpected null when device is not known
2023-06-27 13:30:05 +05:30