diff --git a/db/1.sqlite-shm b/db/1.sqlite-shm index 25bd428..5474019 100644 Binary files a/db/1.sqlite-shm and b/db/1.sqlite-shm differ diff --git a/db/1.sqlite-wal b/db/1.sqlite-wal index faa589e..802d13b 100644 Binary files a/db/1.sqlite-wal and b/db/1.sqlite-wal differ diff --git a/db/auth_copy_2.sqlite-shm b/db/auth_copy_2.sqlite-shm new file mode 100644 index 0000000..fe9ac28 Binary files /dev/null and b/db/auth_copy_2.sqlite-shm differ diff --git a/db/auth_copy_2.sqlite-wal b/db/auth_copy_2.sqlite-wal new file mode 100644 index 0000000..e69de29 diff --git a/src/chat/handlers.rs b/src/chat/handlers.rs index d72921a..27a0145 100644 --- a/src/chat/handlers.rs +++ b/src/chat/handlers.rs @@ -307,6 +307,8 @@ pub async fn send_message( params![&user_id, &payload.message, &payload.conv_id], ); + let message_id = conn.last_insert_rowid(); +// FIXME: add sent_at and message id in the response. match result { Ok(rows) if rows > 0 => { // --- send to conversation participants ---