1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-15 19:38:07 -04:00
profanity/src
Juraj Mlich c5b370bffc 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.
2021-12-31 17:45:45 +01:00
..
command xep-0107: adjust help 2021-12-06 13:38:46 +01:00
config auto-format 2021-10-27 22:45:44 +02:00
event Format new register code correctly 2021-10-13 21:32:44 +02:00
omemo Refined sender device acquirement 2021-10-29 01:27:38 +09:00
otr Add config.h in files were it was missing 2021-03-26 19:54:22 +01:00
pgp Format code correctly 2021-10-05 10:01:27 +02:00
plugins python_api.c: enlarge c_arguments array to avoid OOB write 2021-11-26 07:54:01 +00:00
tools Format code correctly 2021-10-05 10:01:27 +02:00
ui auto-format 2021-10-27 22:45:44 +02:00
xmpp omemo: log when no pubsub 2021-12-13 17:11:30 +01:00
common.c Fix random string generation 2021-04-17 22:37:21 +02:00
common.h Refactor call_external 2020-12-11 15:51:01 +01:00
database.c database.c: fix inserting messages to chat logs if archive_id is empty 2021-12-31 17:45:45 +01:00
database.h Apply coding style 2020-07-07 14:18:57 +02:00
log.c Format code correctly 2021-10-05 10:01:27 +02:00
log.h Remove log_reinit() 2020-12-11 11:18:24 +01:00
main.c first step to remove libmesode 2021-10-27 22:45:44 +02:00
profanity.c Format new register code correctly 2021-10-13 21:32:44 +02:00
profanity.h Update copyright 2021-01-08 16:36:30 +01:00