refactor: Update SDK
This commit is contained in:
parent
b55a81e4ef
commit
91f52956f0
26 changed files with 57 additions and 187 deletions
|
|
@ -93,7 +93,7 @@ class ChatPermissionsSettingsUI extends StatelessWidget {
|
|||
if (room.canSendEvent(EventTypes.RoomTombstone)) ...{
|
||||
Divider(thickness: 1),
|
||||
FutureBuilder<ServerCapabilities>(
|
||||
future: room.client.requestServerCapabilities(),
|
||||
future: room.client.getCapabilities(),
|
||||
builder: (context, snapshot) {
|
||||
if (!snapshot.hasData) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class SearchUI extends StatelessWidget {
|
|||
}
|
||||
controller.publicRoomsResponse ??= Matrix.of(context)
|
||||
.client
|
||||
.searchPublicRooms(
|
||||
.queryPublicRooms(
|
||||
server: server,
|
||||
genericSearchTerm: controller.genericSearchTerm,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class Settings3PidUI extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
controller.request ??=
|
||||
Matrix.of(context).client.requestThirdPartyIdentifiers();
|
||||
Matrix.of(context).client.getAccount3PIDs();
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: BackButton(),
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class SettingsNotificationsUI extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
FutureBuilder<List<Pusher>>(
|
||||
future: Matrix.of(context).client.requestPushers(),
|
||||
future: Matrix.of(context).client.getPushers(),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.hasError) {
|
||||
Center(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue