feat: Prefer references to fully downloaded messages for chat assignment (#5645)

This commit is contained in:
iequidoo
2024-06-07 20:19:31 -03:00
committed by iequidoo
parent 6a3902d90d
commit 78fe2beefb
4 changed files with 97 additions and 44 deletions

View File

@@ -4620,7 +4620,7 @@ impl Context {
.0
}
SyncId::Msgids(msgids) => {
let msg = message::get_latest_by_rfc724_mids(self, msgids)
let msg = message::get_by_rfc724_mids(self, msgids)
.await?
.with_context(|| format!("No message found for Message-IDs {msgids:?}"))?;
ChatId::lookup_by_message(&msg)