After leave/delete channel, still receiving notification for that channel

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?

Hello @Jeckym , let me pass all this to check with may team, i’ll get back to you.

Hello there,

Any update on above issue?

Hello @Jeckym, thank you for following up. It’s currently in progress, and we’ll inform you once we have further updates.

Hello @Jeckym , Our team has checked this case, and we’re unable to reproduce the issue on the latest version.
Could you please try updating to the most recent SDK and UIKit versions and test again?

You can refer to the changelogs below for the latest releases:

Please let us know if the issue persists after updating.