diff options
Diffstat (limited to 'filamento/src/db.rs')
| -rw-r--r-- | filamento/src/db.rs | 2 |
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(( |
