diff --git a/lib/pangea/controllers/pangea_controller.dart b/lib/pangea/controllers/pangea_controller.dart index 0e495b501d..c1fe9333bc 100644 --- a/lib/pangea/controllers/pangea_controller.dart +++ b/lib/pangea/controllers/pangea_controller.dart @@ -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); } diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index 5aae2398bf..b67699a972 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -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 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#