basic nav status counts
This commit is contained in:
@@ -14,10 +14,9 @@ def action_previous(app) -> None:
|
||||
envelopes = json.loads(result.stdout)
|
||||
ids = sorted((int(envelope['id']) for envelope in envelopes), reverse=True)
|
||||
for envelope_id in ids:
|
||||
if envelope_id < app.current_message_id:
|
||||
if envelope_id < int(app.current_message_id):
|
||||
app.current_message_id = envelope_id
|
||||
app.show_message(app.current_message_id)
|
||||
app.show_status(f"Showing previous message: {app.current_message_id}")
|
||||
return
|
||||
app.show_status("No older messages found.", severity="warning")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user