Compare commits
1 Commits
b670778aa3
...
d8ce4ca80e
| Author | SHA1 | Date | |
|---|---|---|---|
|
d8ce4ca80e
|
@@ -392,8 +392,8 @@ _sqlite_get_previous_chat(const gchar* const contact_barejid, const gchar* start
|
||||
const gboolean lmc_allowed = prefs_get_boolean(PREF_CORRECTION_ALLOW);
|
||||
const char* msg_expr = lmc_allowed ? "COALESCE(B.`message`, A.`message`)" : "A.`message`";
|
||||
const char* join_clause = lmc_allowed
|
||||
? "LEFT JOIN `ChatLogs` AS B ON (A.`replaced_by_db_id` = B.`id` AND A.`from_jid` = B.`from_jid`) "
|
||||
: "";
|
||||
? "LEFT JOIN `ChatLogs` AS B ON (A.`replaced_by_db_id` = B.`id` AND A.`from_jid` = B.`from_jid`) "
|
||||
: "";
|
||||
const char* replaces_filter = lmc_allowed ? "(A.`replaces_db_id` IS NULL) AND " : "";
|
||||
|
||||
auto_sqlite gchar* query = sqlite3_mprintf("SELECT * FROM ("
|
||||
|
||||
Reference in New Issue
Block a user