Merge remote-tracking branch 'origin/krille/enable-sentry' into master
This commit is contained in:
commit
317c61c167
14 changed files with 617 additions and 5 deletions
|
|
@ -4,6 +4,7 @@ import 'package:fluffychat/components/dialogs/simple_dialogs.dart';
|
|||
import 'package:fluffychat/components/matrix.dart';
|
||||
import 'package:fluffychat/l10n/l10n.dart';
|
||||
import 'package:fluffychat/utils/app_route.dart';
|
||||
import 'package:fluffychat/utils/sentry_controller.dart';
|
||||
import 'package:fluffychat/views/sign_up.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
|
@ -19,6 +20,10 @@ class HomeserverPicker extends StatelessWidget {
|
|||
}
|
||||
|
||||
void _checkHomeserverAction(String homeserver, BuildContext context) async {
|
||||
if (await SentryController.getSentryStatus() == null || true) {
|
||||
await SentryController.toggleSentryAction(context);
|
||||
}
|
||||
|
||||
if (!homeserver.startsWith('https://')) {
|
||||
homeserver = 'https://$homeserver';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import 'dart:io';
|
|||
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
import 'package:fluffychat/components/settings_themes.dart';
|
||||
import 'package:fluffychat/utils/sentry_controller.dart';
|
||||
import 'package:fluffychat/views/settings_devices.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
@ -341,6 +342,11 @@ class _SettingsState extends State<Settings> {
|
|||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
trailing: Icon(Icons.bug_report),
|
||||
title: Text(L10n.of(context).sendBugReports),
|
||||
onTap: () => SentryController.toggleSentryAction(context),
|
||||
),
|
||||
ListTile(
|
||||
trailing: Icon(Icons.exit_to_app),
|
||||
title: Text(L10n.of(context).logout),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue