Skip to content

Commit

Permalink
fixup! TW-1887: add try catch in local_notification_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Te-Z committed Jul 17, 2024
1 parent 896091c commit 5e2b0d6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/widgets/matrix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -887,20 +887,6 @@ class MatrixState extends State<Matrix>
.then((value) => AppConfig.experimentalVoip = value);
}

// bool _hasClicked = false;

// Future<void> _handleFirstClick() async {
// print("tez: _handleFirstClick() _hasClicked: $_hasClicked");
// if (PlatformInfos.isWeb && !_hasClicked) {
// // final res = html.Notification.requestPermission();
// final res = await Permission.notification.request();
// print("tez: Notification.requestPermission() res: $res");
// setState(() {
// _hasClicked = true;
// });
// }
// }

@override
void dispose() {
WidgetsBinding.instance.removeObserver(this);
Expand Down

0 comments on commit 5e2b0d6

Please sign in to comment.