Merge branch 'td/element_oof' into 'main'

fix: set fixed time for ringer

See merge request famedly/company/frontend/famedlysdk!1081
This commit is contained in:
td 2022-07-19 15:49:10 +00:00
commit 26a42bb948
5 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
## [0.10.6] - 19th Jul 2022
- Add powerLevelContentOverride to startDirectChat and createGroupChat (Isabella Hundstorfer)
- fix: race conditions in the SDK and its tests (Nicolas Werner)
- fix: set fixed time for ringer, should fix calls with element (Jayesh Nirve)
## [0.10.5] - 11th Jul 2022 ## [0.10.5] - 11th Jul 2022
- fix: Cache user profile even with cache=false when there is a cache - fix: Cache user profile even with cache=false when there is a cache

View File

@ -419,7 +419,7 @@ class CallSession {
setCallState(CallState.kRinging); setCallState(CallState.kRinging);
ringingTimer = Timer(Duration(milliseconds: 30000 - lifetime), () { ringingTimer = Timer(Duration(seconds: 30), () {
if (state == CallState.kRinging) { if (state == CallState.kRinging) {
Logs().v('[VOIP] Call invite has expired. Hanging up.'); Logs().v('[VOIP] Call invite has expired. Hanging up.');
hangupParty = CallParty.kRemote; // effectively hangupParty = CallParty.kRemote; // effectively

View File

@ -1,6 +1,6 @@
name: matrix name: matrix
description: Matrix Dart SDK description: Matrix Dart SDK
version: 0.10.5 version: 0.10.6
homepage: https://famedly.com homepage: https://famedly.com
repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git

View File

@ -92,7 +92,7 @@ void main() {
if (!olmEnabled) return; if (!olmEnabled) return;
FakeMatrixApi.calledEndpoints.clear(); FakeMatrixApi.calledEndpoints.clear();
client.encryption!.olmManager await client.encryption!.olmManager
.handleDeviceOneTimeKeysCount({'signed_curve25519': 20}, null); .handleDeviceOneTimeKeysCount({'signed_curve25519': 20}, null);
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload'); await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
expect( expect(
@ -100,7 +100,7 @@ void main() {
true); true);
FakeMatrixApi.calledEndpoints.clear(); FakeMatrixApi.calledEndpoints.clear();
client.encryption!.olmManager await client.encryption!.olmManager
.handleDeviceOneTimeKeysCount({'signed_curve25519': 70}, null); .handleDeviceOneTimeKeysCount({'signed_curve25519': 70}, null);
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload') await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload')
.timeout(Duration(milliseconds: 50), onTimeout: () => ''); .timeout(Duration(milliseconds: 50), onTimeout: () => '');
@ -109,7 +109,8 @@ void main() {
false); false);
FakeMatrixApi.calledEndpoints.clear(); FakeMatrixApi.calledEndpoints.clear();
client.encryption!.olmManager.handleDeviceOneTimeKeysCount(null, []); await client.encryption!.olmManager
.handleDeviceOneTimeKeysCount(null, []);
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload'); await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
expect( expect(
FakeMatrixApi.calledEndpoints.containsKey('/client/v3/keys/upload'), FakeMatrixApi.calledEndpoints.containsKey('/client/v3/keys/upload'),
@ -117,7 +118,7 @@ void main() {
// this will upload keys because we assume the key count is 0, if the server doesn't send one // this will upload keys because we assume the key count is 0, if the server doesn't send one
FakeMatrixApi.calledEndpoints.clear(); FakeMatrixApi.calledEndpoints.clear();
client.encryption!.olmManager await client.encryption!.olmManager
.handleDeviceOneTimeKeysCount(null, ['signed_curve25519']); .handleDeviceOneTimeKeysCount(null, ['signed_curve25519']);
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload'); await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
expect( expect(

View File

@ -25,7 +25,6 @@ import 'package:matrix/src/models/timeline_chunk.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import 'fake_client.dart'; import 'fake_client.dart';
import 'fake_matrix_api.dart';
void main() { void main() {
group('Timeline', () { group('Timeline', () {