aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-04 14:40:38 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-04 14:40:38 +0200
commit3c95917352dfd8ae43768003207e1bb1e80a7376 (patch)
treeaff622cb75266898baef8f7eba721b44448e9477 /db.h
parent191fc6cf55df805d36555a26177da0eac65b6261 (diff)
Send msgids in 'send' response and '_push message'
Diffstat (limited to 'db.h')
-rw-r--r--db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.h b/db.h
index c27b243..8d618b4 100644
--- a/db.h
+++ b/db.h
@@ -59,7 +59,7 @@ struct db_strings_list db_user_tokens(i64 userid);
bool db_add_token(i64 userid,const char *token);
bool db_delete_token(i64 userid,const char *token);
-void db_create_message(i64 roomid,i64 userid,i64 timestamp,const char *message);
+i64 db_create_message(i64 roomid,i64 userid,i64 timestamp,const char *message); // returns msgid
struct db_message_list db_get_messages(i64 roomid,i64 count); // gets latest `count` messages
// if beforeid<0, same as db_get_messages
struct db_message_list db_get_messages_before(i64 roomid,i64 count,i64 beforeid);