Merge pull request #4812 from nextcloud/bugfix/4764/fixDuplicateMessages

fix duplicate messages because of multiple scopes
This commit is contained in:
Sowjanya Kota 2025-04-14 13:38:26 +02:00 committed by GitHub
commit 4c5c7c6a24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -800,6 +800,9 @@ class OfflineFirstChatRepository @Inject constructor(
override fun handleOnPause() {
itIsPaused = true
if (this::scope.isInitialized) {
scope.cancel()
}
}
override fun handleOnResume() {
@ -807,9 +810,7 @@ class OfflineFirstChatRepository @Inject constructor(
}
override fun handleOnStop() {
if (this::scope.isInitialized) {
scope.cancel()
}
// not used
}
@Suppress("LongParameterList")