fix: Fixed fake_matrix_api.dart signedOneTimeKeys upload
This commit is contained in:
parent
3bd36aa19f
commit
5d8a82aefa
|
|
@ -2006,11 +2006,12 @@ class FakeMatrixApi extends MockClient {
|
||||||
'/client/v3/keys/upload': (var req) => {
|
'/client/v3/keys/upload': (var req) => {
|
||||||
'one_time_key_counts': {
|
'one_time_key_counts': {
|
||||||
'curve25519': 10,
|
'curve25519': 10,
|
||||||
'signed_curve25519': tryCast<Map<String, Map<String, Object?>>>(
|
'signed_curve25519':
|
||||||
decodeJson(req))?['one_time_keys']
|
tryCast<Map<String, Object?>>(decodeJson(req))
|
||||||
?.keys
|
?.tryGetMap<String, Object?>('one_time_keys')
|
||||||
.length ??
|
?.keys
|
||||||
0,
|
.length ??
|
||||||
|
0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/client/v3/keys/query': (var req) => {
|
'/client/v3/keys/query': (var req) => {
|
||||||
|
|
|
||||||
|
|
@ -19,3 +19,8 @@ dev_dependencies:
|
||||||
import_sorter: ^4.6.0
|
import_sorter: ^4.6.0
|
||||||
lints: ^2.0.0
|
lints: ^2.0.0
|
||||||
test: ^1.14.4
|
test: ^1.14.4
|
||||||
|
|
||||||
|
dependency_overrides:
|
||||||
|
# uncomment for local development
|
||||||
|
# matrix:
|
||||||
|
# path: '../famedlysdk'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue