Skip to content

fix(ios): correct swapped deviceOnline/deviceOffline bool assignments#28

Open
Flo5k5 wants to merge 1 commit intom5stack:mainfrom
Flo5k5:fix/ios-swap-online-offline
Open

fix(ios): correct swapped deviceOnline/deviceOffline bool assignments#28
Flo5k5 wants to merge 1 commit intom5stack:mainfrom
Flo5k5:fix/ios-swap-online-offline

Conversation

@Flo5k5
Copy link
Copy Markdown

@Flo5k5 Flo5k5 commented Apr 22, 2026

In webSocketMessageMonitoring, the WS message handler was doing the
opposite of what the names imply:

  • MsgType.deviceOnline set deviceIsOnline = false
  • MsgType.deviceOffline set deviceIsOnline = true

Obvious typo in the upstream code. Once the StackChan successfully
opened its avatar WS to the server, the server pushed a deviceOnline
notification to the App and the App mislabelled the status as offline.

In webSocketMessageMonitoring, the WS message handler was doing the
opposite of what the names imply:
- MsgType.deviceOnline  set deviceIsOnline = false
- MsgType.deviceOffline set deviceIsOnline = true

Obvious typo in the upstream code. Once the StackChan successfully
opened its avatar WS to the server, the server pushed a deviceOnline
notification to the App and the App mislabelled the status as offline.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant