Commit 9085c61
fix: use switch_foreground in auto-switch to avoid desync after /thread bg
switch_to() returns the old foreground ID, which is None after /thread bg.
This caused the .is_some() check to fail, skipping the ThreadSwitched
notification and permanently desyncing the client. switch_foreground()
returns bool indicating success, which is the correct check here.
Co-Authored-By: Erica Stith <rexlunae@gmail.com>1 parent b01148b commit 9085c61
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
1206 | | - | |
| 1206 | + | |
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
| |||
0 commit comments