working good state
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user