completed migrating data scope from user to workspace
This commit is contained in:
@@ -66,7 +66,7 @@ class _RecipientsScreenState extends State<RecipientsScreen>
|
||||
|
||||
Future<void> setupData() async {
|
||||
prefs = await SharedPreferences.getInstance();
|
||||
_queryParams['userId'] = prefs.getString("userId")!;
|
||||
_queryParams['workspaceId'] = prefs.getString("workspaceId")!;
|
||||
controller.getRecipients(_queryParams);
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@ class _RecipientsScreenState extends State<RecipientsScreen>
|
||||
_queryParams['email'] = _accountController.text;
|
||||
_queryParams['phoneNumber'] = _accountController.text;
|
||||
_queryParams['name'] = _accountController.text;
|
||||
_queryParams['userId'] = prefs.getString("userId")!;
|
||||
_queryParams['workspaceId'] = prefs.getString("workspaceId")!;
|
||||
|
||||
controller.getRecipients(_queryParams);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user