feat: sort inbox by time after added new messages

This commit is contained in:
2025-02-18 17:04:19 +07:00
parent 85c485a4e4
commit 50242981a5
3 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ use chrono::{Datelike, Local, TimeZone};
use gpui::SharedString;
use nostr_sdk::prelude::*;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct LastSeen(pub Timestamp);
impl LastSeen {