about summary refs log tree commit diff stats
path: root/themes/snikket
diff options
context:
space:
mode:
authorJuraj Mlich <juraj@mlich.eu>2021-12-31 17:45:45 +0100
committerJuraj Mlich <juraj@mlich.eu>2021-12-31 17:45:45 +0100
commitc5b370bffc1c74749af23d00c74bc96a1ca9fe5d (patch)
tree848202d459fd23661974ca3b5f65f5f31f141cfd /themes/snikket
parenta1e0f1d414fbd25ddf0ddf8d008e8e6c5ac6bbc6 (diff)
downloadprofani-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 'themes/snikket')
0 files changed, 0 insertions, 0 deletions