diff --git a/lib/src/utils/matrix_exception.dart b/lib/src/utils/matrix_exception.dart index 44f447e..53c8957 100644 --- a/lib/src/utils/matrix_exception.dart +++ b/lib/src/utils/matrix_exception.dart @@ -100,7 +100,7 @@ class MatrixException implements Exception { Map get authenticationParams => raw["params"]; /// Returns the list of already completed authentication flows from previous requests. - List get completedAuthenticationFlows => raw["completed"]; + List get completedAuthenticationFlows => List.from(raw["completed"]); } /// For each endpoint, a server offers one or more 'flows' that the client can use