feat(app): chat row refusals can be dismissed with OK
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user