diff options
author | Juraj Mlich <juraj@mlich.eu> | 2021-12-31 17:45:45 +0100 |
---|---|---|
committer | Juraj Mlich <juraj@mlich.eu> | 2021-12-31 17:45:45 +0100 |
commit | c5b370bffc1c74749af23d00c74bc96a1ca9fe5d (patch) | |
tree | 848202d459fd23661974ca3b5f65f5f31f141cfd /apidocs | |
parent | a1e0f1d414fbd25ddf0ddf8d008e8e6c5ac6bbc6 (diff) | |
download | profani-tty-c5b370bffc1c74749af23d00c74bc96a1ca9fe5d.tar.gz |
database.c: fix inserting messages to chat logs if archive_id is empty
The original intention of the code was that in case archive_id is not set, NULL should be inserted. What is inserted however is an empty string. This causes the condition to not insert messages with non-unique archive_id insert only one message in total and ignore all further ones (if NULL was there, the condition would work properly). And this in turn causes chat history not work properly. This commit makes the SQL condition work properly and therefore fixes chat history. Fixes #1589.
Diffstat (limited to 'apidocs')
0 files changed, 0 insertions, 0 deletions