feat(app): chat row refusals can be dismissed with OK

This commit is contained in:
2026-10-22 22:37:27 +01:00
parent 59ea483aa3
commit 3085de9f30
7 changed files with 64 additions and 6 deletions
@@ -81,6 +81,11 @@ class ChatSessionsController extends ChangeNotifier {
/// The row an action failed on; the message is the server's own words.
String? errorFor(String sessionId) => _actionErrors[sessionId];
/// The operator acknowledged [sessionId]'s refusal; nothing is sent.
void dismissError(String sessionId) {
if (_actionErrors.remove(sessionId) != null) _notify();
}
/// The last hidden session, while its Undo is still offered.
String? get lastHidden => _lastHidden;