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>
This commit is contained in:
parent
33208aa30c
commit
19abec6422
1 changed files with 8 additions and 1 deletions
|
|
@ -330,7 +330,14 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue