init sentry user info on app launch
This commit is contained in:
parent
a23afbd3dd
commit
9dd22ef107
2 changed files with 15 additions and 1 deletions
|
|
@ -136,7 +136,12 @@ class PangeaController {
|
|||
_logOutfromPangea();
|
||||
}
|
||||
Sentry.configureScope(
|
||||
(scope) => scope.setUser(SentryUser(id: matrixState.client.userID)),
|
||||
(scope) => scope.setUser(
|
||||
SentryUser(
|
||||
id: matrixState.client.userID,
|
||||
name: matrixState.client.userID,
|
||||
),
|
||||
),
|
||||
);
|
||||
GoogleAnalytics.analyticsUserUpdate(matrixState.client.userID);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import 'package:intl/intl.dart';
|
|||
import 'package:matrix/encryption.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:universal_html/html.dart' as html;
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
|
@ -241,6 +242,14 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
}
|
||||
initLoadingDialog();
|
||||
// #Pangea
|
||||
Sentry.configureScope(
|
||||
(scope) => scope.setUser(
|
||||
SentryUser(
|
||||
id: client.userID,
|
||||
name: client.userID,
|
||||
),
|
||||
),
|
||||
);
|
||||
pangeaController = PangeaController(matrix: widget, matrixState: this);
|
||||
// PAuthGaurd.isLogged = client.isLogged();
|
||||
// Pangea#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue