mirror of
https://github.com/fr33n0w/lxmf-cli.git
synced 2025-12-22 05:57:07 +00:00
Improve received messages ui
Improve received messages ui: include timestamp in the notification title, remove hash address from the sender (less verbose output for small screens)
This commit is contained in:
@@ -990,9 +990,9 @@ class LXMFClient:
|
||||
|
||||
# SIMPLE PRINTS - NO COLOR CODES IN STRINGS
|
||||
print(f"\n{'─'*width}")
|
||||
print(f"📨 NEW MESSAGE from {sender_display}")
|
||||
timestamp = datetime.fromtimestamp(message.timestamp).strftime('%H:%M:%S')
|
||||
print(f"📨 [{timestamp}] NEW MESSAGE from: {self.format_contact_display_short(msg_data['source_hash'])}")
|
||||
print(f"{'─'*width}")
|
||||
print(f"Time: {datetime.fromtimestamp(message.timestamp).strftime('%Y-%m-%d %H:%M:%S')}")
|
||||
if title:
|
||||
print(f"Title: {title}")
|
||||
if content:
|
||||
|
||||
Reference in New Issue
Block a user