feat: Implement deleting pushers in app
This commit is contained in:
parent
7357209f95
commit
dfe7a1c831
2 changed files with 38 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ class SettingsNotificationsView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
FutureBuilder<List<Pusher>?>(
|
||||
future: Matrix.of(context).client.getPushers(),
|
||||
future: controller.pusherFuture ??=
|
||||
Matrix.of(context).client.getPushers(),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.hasError) {
|
||||
Center(
|
||||
|
|
@ -100,6 +101,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|||
title: Text(
|
||||
'${pushers[i].appDisplayName} - ${pushers[i].appId}'),
|
||||
subtitle: Text(pushers[i].data.url.toString()),
|
||||
onTap: () => controller.onPusherTap(pushers[i]),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue