Add database implementation of channel message change tracking

This commit is contained in:
Mikayla 2023-10-01 21:31:36 -07:00
parent e0ff7ba180
commit 51cf6a5ff3
No known key found for this signature in database
9 changed files with 339 additions and 19 deletions

View file

@ -9,3 +9,13 @@ pub mod projects;
pub mod rooms;
pub mod servers;
pub mod users;
fn max_assign<T: Ord>(max: &mut Option<T>, val: T) {
if let Some(max_val) = max {
if val > *max_val {
*max = Some(val);
}
} else {
*max = Some(val);
}
}