improvement: correct thumbnailing algorithm

This commit is contained in:
Timo Kösters 2020-10-19 15:29:36 +02:00
parent cde4178f4a
commit 6bb8284fc0
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
3 changed files with 81 additions and 4 deletions

View file

@ -393,6 +393,7 @@ pub fn send_transaction_message_route<'a>(
let mut pdu_id = pdu.room_id.as_bytes().to_vec();
pdu_id.push(0xff);
pdu_id.extend_from_slice(&count.to_be_bytes());
db.rooms.append_to_state(&pdu_id, &pdu)?;
db.rooms.append_pdu(
&pdu,
&value,
@ -402,7 +403,6 @@ pub fn send_transaction_message_route<'a>(
&db.account_data,
&db.sending,
)?;
db.rooms.append_to_state(&pdu_id, &pdu)?;
}
}
Ok(send_transaction_message::v1::Response {