Fix new registration

This commit is contained in:
sim 2025-02-01 13:19:42 +00:00
parent 1d25d941dd
commit b2c41e287e

View File

@ -52,10 +52,10 @@ object Distributor : UnifiedPushDistributor() {
callback: (ChannelCreationStatus) -> Unit
) {
val then = fun (chanId: ChannelCreationStatus) {
channelId ?.let {
channelId?.let {
callback(chanId)
unregisterChannelIdToServer(context, it) {}
}
} ?: callback(chanId)
}
if (packageName == context.packageName) {
Api(context).apiCreateApp(context.getString(R.string.list_registrations_local_title, title), null, then)