fix: Fixed fake_matrix_api.dart signedOneTimeKeys upload

This commit is contained in:
Malin Errenst 2023-06-22 18:05:04 +02:00
parent 3bd36aa19f
commit 5d8a82aefa
No known key found for this signature in database
2 changed files with 11 additions and 5 deletions

View File

@ -2006,8 +2006,9 @@ class FakeMatrixApi extends MockClient {
'/client/v3/keys/upload': (var req) => {
'one_time_key_counts': {
'curve25519': 10,
'signed_curve25519': tryCast<Map<String, Map<String, Object?>>>(
decodeJson(req))?['one_time_keys']
'signed_curve25519':
tryCast<Map<String, Object?>>(decodeJson(req))
?.tryGetMap<String, Object?>('one_time_keys')
?.keys
.length ??
0,

View File

@ -19,3 +19,8 @@ dev_dependencies:
import_sorter: ^4.6.0
lints: ^2.0.0
test: ^1.14.4
dependency_overrides:
# uncomment for local development
# matrix:
# path: '../famedlysdk'