diff --git a/data/src/history/manager.rs b/data/src/history/manager.rs index ba333980d..eaae71a20 100644 --- a/data/src/history/manager.rs +++ b/data/src/history/manager.rs @@ -7,7 +7,6 @@ use tokio::time::Instant; use crate::history::{self, History}; use crate::message::{self, Limit}; -use crate::time::Posix; use crate::user::Nick; use crate::{server, Server}; @@ -246,7 +245,7 @@ fn with_limit<'a>( collected[length.saturating_sub(n)..length].to_vec() } Some(Limit::Since(timestamp)) => messages - .skip_while(|message| Posix::from(message.received_at) < timestamp) + .skip_while(|message| message.received_at < timestamp) .collect(), None => messages.collect(), }