Hello there,
I am using leave channel of amity function below
AmityChatClient.newChannelRepository()
.leaveChannel(channelId) .then((value) => {debugPrint(“value—${value}”),
}) .onError((error, stackTrace) async {});
**but after leaving channel, I am still receiving notification for this.
Also, I am using backend api to delete channel if user is admin. After deleting channel, still able to receive notification.**
var url = “https://apix.us.amity.co/api/v3/channels/$channelId”;
http.Response response = await http.delete(Uri.parse(url),
headers: {“Content-Type”: “application/json”,
“Authorization”: “Bearer ${AppContant.amityAdminToken}”
}, );if (response != null) {
// showToast(“dismiss chat screen12”);
ProgressDialogUtils2.dismissProgressDialog();
}if (response.statusCode == 200) {
debugPrint(“Channel deleted successfully”);
} else {showStyledToast(“Amity - Error in channel deletion”);
}
Can you please guide on this?