Merge pull request #4739 from nextcloud/bugfix/noid/avoidUninitializedScopeInOnStop

check if scope is initialized before canceling
This commit is contained in:
Sowjanya Kota 2025-02-18 14:52:23 +01:00 committed by GitHub
commit 6e5f830fc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -804,8 +804,10 @@ class OfflineFirstChatRepository @Inject constructor(
}
override fun handleOnStop() {
if (this::scope.isInitialized) {
scope.cancel()
}
}
@Suppress("LongParameterList")
override suspend fun sendChatMessage(