Update SDK
This commit is contained in:
parent
4d1560a7df
commit
32a1c3ca1c
31 changed files with 1394 additions and 261 deletions
|
|
@ -28,10 +28,8 @@ class PublicRoomListItem extends StatelessWidget {
|
|||
}
|
||||
|
||||
Future<String> _joinRoomAndWait(BuildContext context) async {
|
||||
final roomId = await Matrix.of(context)
|
||||
.client
|
||||
.api
|
||||
.joinRoomOrAlias(publicRoomEntry.roomId);
|
||||
final roomId =
|
||||
await Matrix.of(context).client.joinRoomOrAlias(publicRoomEntry.roomId);
|
||||
if (Matrix.of(context).client.getRoomById(roomId) == null) {
|
||||
await Matrix.of(context)
|
||||
.client
|
||||
|
|
|
|||
|
|
@ -302,12 +302,11 @@ class _InheritedMatrix extends InheritedWidget {
|
|||
|
||||
@override
|
||||
bool updateShouldNotify(_InheritedMatrix old) {
|
||||
var update =
|
||||
old.data.client.api.accessToken != data.client.api.accessToken ||
|
||||
old.data.client.userID != data.client.userID ||
|
||||
old.data.client.deviceID != data.client.deviceID ||
|
||||
old.data.client.deviceName != data.client.deviceName ||
|
||||
old.data.client.api.homeserver != data.client.api.homeserver;
|
||||
var update = old.data.client.accessToken != data.client.accessToken ||
|
||||
old.data.client.userID != data.client.userID ||
|
||||
old.data.client.deviceID != data.client.deviceID ||
|
||||
old.data.client.deviceName != data.client.deviceName ||
|
||||
old.data.client.homeserver != data.client.homeserver;
|
||||
return update;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue