add: order dms by last message time
This commit is contained in:
parent
0af95e517d
commit
9443bfb58d
6 changed files with 29 additions and 6 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue