mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix message state whose storage in db was broken
This commit is contained in:
parent
a11ac06204
commit
54e6f89dac
1 changed files with 2 additions and 2 deletions
|
|
@ -253,8 +253,8 @@ unsigned int linphone_chat_message_store(LinphoneChatMessage *msg){
|
|||
void linphone_chat_message_store_state(LinphoneChatMessage *msg){
|
||||
LinphoneCore *lc=msg->chat_room->lc;
|
||||
if (lc->db){
|
||||
char *buf=sqlite3_mprintf("UPDATE history SET status=%i WHERE (id = %i) AND utc = %lld;",
|
||||
msg->state,msg->storage_id,msg->time);
|
||||
char *buf=sqlite3_mprintf("UPDATE history SET status=%i WHERE (id = %i);",
|
||||
msg->state,msg->storage_id);
|
||||
linphone_sql_request(lc->db,buf);
|
||||
sqlite3_free(buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue