fix: pass sessionId with screenshot command
| .. | .. |
|---|
| 147 | 147 | _sendCommand('nav', {'key': key}); |
|---|
| 148 | 148 | }, |
|---|
| 149 | 149 | requestScreenshot: (sessionId) { |
|---|
| 150 | | - _sendCommand('screenshot'); |
|---|
| 150 | + _sendCommand('screenshot', {'sessionId': sessionId ?? ref.read(activeSessionIdProvider)}); |
|---|
| 151 | 151 | }, |
|---|
| 152 | 152 | ); |
|---|
| 153 | 153 | |
|---|
| .. | .. |
|---|
| 549 | 549 | |
|---|
| 550 | 550 | void _requestScreenshot() { |
|---|
| 551 | 551 | _screenshotForChat = true; |
|---|
| 552 | | - _sendCommand('screenshot'); |
|---|
| 552 | + _sendCommand('screenshot', {'sessionId': ref.read(activeSessionIdProvider)}); |
|---|
| 553 | 553 | if (mounted) { |
|---|
| 554 | 554 | ScaffoldMessenger.of(context).showSnackBar( |
|---|
| 555 | 555 | const SnackBar( |
|---|