Fix new registration
This commit is contained in:
parent
1d25d941dd
commit
b2c41e287e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user