From 19abec6422ab449f08be520ff7c205f88f76afa5 Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Thu, 20 Feb 2025 13:43:48 -0500 Subject: [PATCH] Adds logging when redirecting from space chat (#1862) * Adds logging when redirecting from space chat * generated --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> --- lib/pages/chat/chat.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 115361d77..8c4bd45ec 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -330,7 +330,14 @@ class ChatController extends State WidgetsBinding.instance.addObserver(this); // #Pangea if (!mounted) return; - if (room.isSpace) context.go("/rooms"); + if (room.isSpace) { + ErrorHandler.logError( + e: "Space chat opened", + s: StackTrace.current, + data: {"roomId": roomId}, + ); + context.go("/rooms"); + } Future.delayed(const Duration(seconds: 1), () async { if (!mounted) return; debugPrint(