Fix span when adding messages

This commit is contained in:
Joscha 2022-06-24 01:04:22 +02:00
parent 54b056ba1c
commit 4e4eb036e0

View file

@ -344,7 +344,7 @@ impl EuphRequest {
Self::add_span(&tx, &room, None, next_msg_id)?;
} else {
let first_msg_id = msgs.first().unwrap().id;
let last_msg_id = msgs.first().unwrap().id;
let last_msg_id = msgs.last().unwrap().id;
let mut stmt = tx.prepare("
INSERT OR REPLACE INTO euph_msgs (