mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Small tweaks to the Presence feature. (#5918)
This commit is contained in:
@@ -1285,8 +1285,8 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
return
|
||||
}
|
||||
|
||||
// State-only (no HTTP): configure the background-refresh sync to carry set_presence=offline so it never
|
||||
// reuses the client's foreground sync presence and marks the user online or idle.
|
||||
// Configure the background-refresh sync to carry set_presence=offline so it doesn't mark the
|
||||
// user online or idle. Note: If already online/idle then setting offline shouldn't override that.
|
||||
_ = await userSession.clientProxy.configurePresence(.offline, sendImmediately: false)
|
||||
|
||||
await resumeClientServices()
|
||||
|
||||
@@ -100,10 +100,9 @@ final class PresenceService {
|
||||
return
|
||||
}
|
||||
|
||||
let clientProxy = clientProxy
|
||||
sendTask = Task { [weak self, clientProxy] in
|
||||
while !Task.isCancelled {
|
||||
guard let presence = await self?.nextPendingPresence() else {
|
||||
guard let presence = self?.nextPendingPresence() else {
|
||||
break
|
||||
}
|
||||
|
||||
@@ -113,10 +112,10 @@ final class PresenceService {
|
||||
break
|
||||
}
|
||||
|
||||
await self?.finishSending(presence)
|
||||
self?.finishSending(presence)
|
||||
}
|
||||
|
||||
await self?.finishSendTask()
|
||||
self?.finishSendTask()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user