getUserByID method
Implementation
Future<AmityUser?> getUserByID(String id) async {
await AmityCoreClient.newUserRepository().getUser(id).then((user) {
log("IsGlobalban: ${user.isGlobalBan}");
return user;
}).onError((error, stackTrace) async {
log(error.toString());
await AmityDialog()
.showAlertErrorDialog(title: "Error!", message: error.toString());
return AmityUser();
});
}