aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-10-25 18:35:25 +0200
committerLibravatar cel 🌸 <cel@bunny.garden>2025-10-25 18:35:25 +0200
commita56c8d3562d50941126cb010459accd780198046 (patch)
tree9eb92ae0e4042b0782ba9edf3c1834687541435f /filamento/src
parent1148a73b8880fbe7bba71b1159233fddc6f59ce0 (diff)
downloadluz-db-refactor.tar.gz
luz-db-refactor.tar.bz2
luz-db-refactor.zip
fix(filamento): get_message_history_with_usersdb-refactor
Diffstat (limited to '')
-rw-r--r--filamento/src/db.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/filamento/src/db.rs b/filamento/src/db.rs
index 0b94f0c..7a1307e 100644
--- a/filamento/src/db.rs
+++ b/filamento/src/db.rs
@@ -1651,7 +1651,7 @@ ORDER BY m.timestamp DESC",
let messages = self
.db
.prepare(
- "select id, primary_jid, delivery, timestamp, body, jid, nick, avatar from messages join users on jid = (select primary_jid from identities where id = from_identity) where chat_id = ? order by timestamp asc",
+ "select id, jid, delivery, timestamp, body, jid, nick, avatar from messages join users on jid = (select primary_jid from identities where id = from_identity) where chat_id = ? order by timestamp asc",
)?
.query_map([chat_id], |row| {
Ok((