Skip to content

fix(msggateway): preserve client background status - #3766

Open
buvidk1234 wants to merge 1 commit into
openimsdk:mainfrom
buvidk1234:fix/client-background-status
Open

fix(msggateway): preserve client background status#3766
buvidk1234 wants to merge 1 commit into
openimsdk:mainfrom
buvidk1234:fix/client-background-status

Conversation

@buvidk1234

Copy link
Copy Markdown
Contributor

🅰 Please add the issue ID after "Fixes #"

Fixes #

Summary

ResetClient reads the background status from the connection context, but then immediately overwrites it with false.

This causes the handshake isBackground value to be ignored. For example, an iOS client that connects while in background can be treated as foreground, so pushToUser may attempt WebSocket online push instead of returning the iOS background push result.

This change removes the forced reset and keeps the background status parsed from the handshake.

@pull-request-size pull-request-size Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant