Skip to content

Commit

Permalink
fix?: last_viewed is a counter, not a datetime
Browse files Browse the repository at this point in the history
thanks to MaddyUnderStars; this explanation seems to make sense considering we only need to know if we are ahead / behind the version, not when exactly it was accessed
  • Loading branch information
kozabrada123 committed Nov 21, 2024
1 parent 7feb571 commit fb94afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/events/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ pub struct ReadStateEntry {
pub id: Snowflake,
pub last_message_id: Option<Snowflake>,
pub last_pin_timestamp: Option<DateTime<Utc>>,
pub last_viewed: Option<DateTime<Utc>>,
/// A value that is incremented each time the read state is read
pub last_viewed: Option<u32>,
// Temporary adding Option to fix Spacebar servers, they have mention count as a nullable
pub mention_count: Option<u64>,
}

0 comments on commit fb94afa

Please sign in to comment.