add: order dms by last message time

This commit is contained in:
trisua 2025-06-15 18:55:19 -04:00
parent 0af95e517d
commit 9443bfb58d
6 changed files with 29 additions and 6 deletions

View file

@ -254,6 +254,10 @@ impl DataManager {
return Err(Error::MiscError(e.to_string()));
}
// update channel position
self.update_channel_last_message(channel.id, unix_epoch_timestamp() as i64)
.await?;
// ...
Ok(())
}