From bab69f523a64813fe939c3fda174c1970aa7a0ab Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 14 Jun 2025 19:36:17 +0600 Subject: [PATCH] small refactor --- .../tgbotapi/extensions/behaviour_builder/BehaviourContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt index 483dbc6339..09f1e8c076 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt @@ -217,7 +217,7 @@ fun BC.launchInNewSubContext( updatesUpstreamFlow = updatesUpstreamFlow, subcontextInitialAction = subcontextInitialAction ).apply { - launchLoggingDropExceptions(logger = Log ?: KSLog) { + this@apply.launchLoggingDropExceptions(logger = Log ?: KSLog) { behaviourContextReceiver() } }.coroutineContext.job