daemon: add support for getting messages from db
This commit is contained in:
@@ -310,6 +310,10 @@ async fn test_insert_messages_batch() {
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure the last message is the last one we inserted
|
||||
let last_message = repository.get_last_message_for_conversation(&conversation_id).unwrap().unwrap();
|
||||
assert_eq!(last_message.id, message4.id);
|
||||
})
|
||||
.await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user