File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
vector-app/src/main/java/im/vector/app Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,15 @@ class VectorApplication :
189
189
fcmHelper.onEnterBackground(activeSessionHolder)
190
190
191
191
if (stopBackgroundSync) {
192
- Timber .i(" App entered background: stop any background sync" )
193
- activeSessionHolder.getSafeActiveSessionAsync {
194
- it?.syncService()?.stopAnyBackgroundSync()
192
+ if (webRtcCallManager.currentCall.get() == null ) {
193
+ Timber .i(" App entered background: stop any background sync" )
194
+ activeSessionHolder.getSafeActiveSessionAsync {
195
+ it?.syncService()?.stopAnyBackgroundSync()
196
+ }
197
+ stopBackgroundSync = false
198
+ } else {
199
+ Timber .i(" App entered background: there is an active call do not stop background sync" )
195
200
}
196
- stopBackgroundSync = false
197
201
}
198
202
}
199
203
})
You can’t perform that action at this time.
0 commit comments