working good state

This commit is contained in:
Tim Bendt
2025-05-01 11:59:28 -04:00
parent 7a5b911414
commit 1f75a03553
20 changed files with 173 additions and 78 deletions

View File

@@ -12,9 +12,8 @@ def action_archive(app) -> None:
text=True
)
if result.returncode == 0:
app.query_one("#main_content", Static).update(f"Message {app.current_message_id} archived.")
action_next(app) # Automatically show the next message
else:
app.query_one("#main_content", Static).update(f"Failed to archive message {app.current_message_id}.")
app.show_status(f"Error archiving message: {result.stderr}", "error")
except Exception as e:
app.query_one("#main_content", Static).update(f"Error: {e}")
app.show_status(f"Error: {e}", "error")