chore: Upgrade to matrix_api_lite 1.6
This commit is contained in:
parent
82efa16c49
commit
7039c33f3a
|
|
@ -450,6 +450,7 @@ class Client extends MatrixApi {
|
||||||
String? deviceId,
|
String? deviceId,
|
||||||
String? initialDeviceDisplayName,
|
String? initialDeviceDisplayName,
|
||||||
bool? inhibitLogin,
|
bool? inhibitLogin,
|
||||||
|
bool? refreshToken,
|
||||||
AuthenticationData? auth,
|
AuthenticationData? auth,
|
||||||
AccountKind? kind,
|
AccountKind? kind,
|
||||||
}) async {
|
}) async {
|
||||||
|
|
@ -496,6 +497,7 @@ class Client extends MatrixApi {
|
||||||
String? token,
|
String? token,
|
||||||
String? deviceId,
|
String? deviceId,
|
||||||
String? initialDeviceDisplayName,
|
String? initialDeviceDisplayName,
|
||||||
|
bool? refreshToken,
|
||||||
@Deprecated('Deprecated in favour of identifier.') String? user,
|
@Deprecated('Deprecated in favour of identifier.') String? user,
|
||||||
@Deprecated('Deprecated in favour of identifier.') String? medium,
|
@Deprecated('Deprecated in favour of identifier.') String? medium,
|
||||||
@Deprecated('Deprecated in favour of identifier.') String? address,
|
@Deprecated('Deprecated in favour of identifier.') String? address,
|
||||||
|
|
@ -530,11 +532,8 @@ class Client extends MatrixApi {
|
||||||
final deviceId_ = response.deviceId;
|
final deviceId_ = response.deviceId;
|
||||||
final userId = response.userId;
|
final userId = response.userId;
|
||||||
final homeserver_ = homeserver;
|
final homeserver_ = homeserver;
|
||||||
if (accessToken == null ||
|
if (homeserver_ == null) {
|
||||||
deviceId_ == null ||
|
throw Exception('Registered but homerserver is null.');
|
||||||
userId == null ||
|
|
||||||
homeserver_ == null) {
|
|
||||||
throw Exception('Registered but token, device ID or user ID is null.');
|
|
||||||
}
|
}
|
||||||
await init(
|
await init(
|
||||||
newToken: accessToken,
|
newToken: accessToken,
|
||||||
|
|
|
||||||
|
|
@ -1315,7 +1315,7 @@ class Room {
|
||||||
}
|
}
|
||||||
await client.setReadMarker(
|
await client.setReadMarker(
|
||||||
id,
|
id,
|
||||||
eventId,
|
mFullyRead: eventId,
|
||||||
mRead: mRead,
|
mRead: mRead,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
@ -1361,7 +1361,6 @@ class Room {
|
||||||
id,
|
id,
|
||||||
ReceiptType.mRead,
|
ReceiptType.mRead,
|
||||||
eventId,
|
eventId,
|
||||||
{},
|
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ dependencies:
|
||||||
image: ^3.1.1
|
image: ^3.1.1
|
||||||
js: ^0.6.3
|
js: ^0.6.3
|
||||||
markdown: ^4.0.0
|
markdown: ^4.0.0
|
||||||
matrix_api_lite: ^1.1.8
|
matrix_api_lite: ^1.6.0
|
||||||
mime: ^1.0.0
|
mime: ^1.0.0
|
||||||
olm: ^2.0.2
|
olm: ^2.0.2
|
||||||
random_string: ^2.3.1
|
random_string: ^2.3.1
|
||||||
|
|
|
||||||
|
|
@ -349,7 +349,7 @@ void main() {
|
||||||
identifier: AuthenticationUserIdentifier(user: 'test'),
|
identifier: AuthenticationUserIdentifier(user: 'test'),
|
||||||
password: '1234');
|
password: '1234');
|
||||||
|
|
||||||
expect(loginResp.userId != null, true);
|
expect(loginResp.userId.isNotEmpty, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('setAvatar', () async {
|
test('setAvatar', () async {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue