small send message change
This commit is contained in:
BIN
db/1.sqlite-shm
BIN
db/1.sqlite-shm
Binary file not shown.
BIN
db/1.sqlite-wal
BIN
db/1.sqlite-wal
Binary file not shown.
BIN
db/auth_copy_2.sqlite-shm
Normal file
BIN
db/auth_copy_2.sqlite-shm
Normal file
Binary file not shown.
0
db/auth_copy_2.sqlite-wal
Normal file
0
db/auth_copy_2.sqlite-wal
Normal file
@@ -307,6 +307,8 @@ pub async fn send_message(
|
|||||||
params![&user_id, &payload.message, &payload.conv_id],
|
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 {
|
match result {
|
||||||
Ok(rows) if rows > 0 => {
|
Ok(rows) if rows > 0 => {
|
||||||
// --- send to conversation participants ---
|
// --- send to conversation participants ---
|
||||||
|
|||||||
Reference in New Issue
Block a user