Commit graph

55 commits

Author SHA1 Message Date
fiaxh cc01374d3c Use advertized/server/live time for sorting instead of arrival time
fixes #310
2020-12-04 19:11:27 +01:00
fiaxh 1999c97bb9 Improve content_item db table index
fixes #923

Co-authored-by: eta <eta@theta.eu.org>
2020-11-05 17:11:46 +01:00
fiaxh 2e0357877c Fix some compiler warnings 2020-10-27 16:05:30 +01:00
eta 9cc3382abe service/database: use WAL mode + safe PRAGMA synchronous setting
Setting PRAGMA synchronous = 0 is really unsafe, and leads to database
corruption (which I've personally experienced). This commit uses
SQLite's Write-Ahead Log (WAL) [1] instead, together with synchronous =
NORMAL. According to [1], this trades off performance for durability
(i.e. it's possible that some transactions may not have committed if the
power gets lost), but still guarantees that the database won't corrupt
itself.

Together, these changes should improve reliability whilst either
improving or having no effect on performance.

[1]: https://www.sqlite.org/wal.html
2020-10-06 18:05:25 +02:00
fiaxh 6d41071da1 Recreate avatar database table, fixes unique constraint 2020-06-11 00:03:30 +02:00
fiaxh d01af5b520 Fix compiler warnings 2020-06-03 21:50:40 +02:00
fiaxh 71be2abb6a Store last read content item for conversations
fixes #495
2020-06-03 21:50:40 +02:00
fiaxh 871ff33ac7 Add support for last message correction 2020-04-03 22:49:59 +02:00
fiaxh 12cd56612d Store entity identity info, use it in conversation list tooltips 2020-03-29 20:24:39 +02:00
fiaxh 2eb72d5dad Fix+optimize contact-to-avatar storage and loading 2020-03-10 23:53:11 +01:00
fiaxh b8b3e1c6f5 Improve MUC message resending 2020-03-03 15:14:31 +01:00
Alexander Krotov b9125b7e3e Enable secure_delete PRAGMA on SQLite databases (#370)
It is especially important for OMEMO database, as it stores *ephemeral* keys
2020-02-21 20:49:36 +01:00
fiaxh 33499d076d Only cache fully normalized Jids for reverse lookup 2019-12-24 03:14:11 +01:00
Marvin W a0a956ee08
Properly check Jids everywhere 2019-12-23 16:58:53 +01:00
fiaxh c3532bdf31 Refactor MAM catchup. Fetch from latest to earliest message. 2019-12-18 20:35:04 +01:00
fiaxh 321c3529f3 Add (partial) support for unique stanza ids (XEP-0359) 2019-12-18 20:35:04 +01:00
fiaxh bd7fde99af fixup Fix some warnings 2019-09-10 19:36:11 +02:00
hrxi d5d305193c Fix some warnings
Instances of `RegexError` are just asserted as `assert_not_reached` as
they cannot really fail except for allocation failure if the given regex
is valid.
2019-09-10 19:36:11 +02:00
fiaxh 9ee9661bf3 Optimizations: Database indices, cache id-Jid instead of id-jid_string, join real_jid on get messages 2019-08-02 18:00:26 +02:00
fiaxh 22340cb88e Always use Account.hash(equals)_func for HashMap+ArrayList 2018-11-24 14:05:03 -06:00
fiaxh 0e41fb3294 Add hidden column to content_item table 2018-08-31 16:26:23 +02:00
bobufa f5547076d2 rename content db table -> content_item 2018-08-13 23:48:15 +02:00
bobufa 1d9ce7f471 sort file transfers into correct conversation 2018-08-13 22:39:18 +02:00
bobufa 2992a12f9f fix non-adjacent messages being shown before/after hit 2018-08-13 22:39:18 +02:00
bobufa e376a577b6 improve sidebar UI
- only display messages that are content items
- only display messages for active accounts
- "fix" textview issue
- add empty states (no search, no results)
2018-08-13 22:39:18 +02:00
bobufa 2e2a9a2390 accumulate conversation content in meta db table 2018-08-13 22:39:07 +02:00
bobufa 760fd4cb26 load+display later messages when scrolling down 2018-08-13 22:05:04 +02:00
bobufa ab0bc7f04d enable fts for the body of messages 2018-08-13 21:55:48 +02:00
fiaxh c6ff25cc7a Only assume UUID to be unique for one counterpart+account when deduplicating 2018-03-10 20:01:22 +01:00
Marvin W 782ae4c049 Move Jid class to xmpp-vala, partially refactor namespace 2018-01-28 00:38:47 +01:00
fiaxh 0102abeec1 Fix warnings 2017-10-31 15:41:45 +01:00
fiaxh b9df78e449 Move DatabaseError handling into Qlite 2017-10-31 15:41:45 +01:00
fiaxh 555187deb9 Offline messages for MUCs
fixes #187
2017-10-22 18:26:31 +02:00
fiaxh a257b16337 Download & inline display images 2017-08-31 18:54:38 +02:00
fiaxh 8bc0d107e7 Plugins providing conversation items for ConversationView 2017-08-28 00:02:59 +02:00
fiaxh 4a4b5956c9 Move settings from GSettings to own db 2017-08-22 16:22:56 +02:00
fiaxh fb36ea0553 Message Archive Management 2017-08-17 01:26:03 +02:00
fiaxh ea174ab632 Http file upload 2017-08-03 15:59:04 +02:00
fiaxh 26973c89e3 Set jid handle in ContactDetails, use LabelHybrids more, remove edit from StartConversation 2017-06-17 16:13:23 +02:00
fiaxh 387433ebb9 Notifications + typing notifications + message marker settings per conversation 2017-05-30 22:33:33 +02:00
fiaxh 142257a544 fixup bcb9690 (Roster versioning) 2017-05-24 17:29:17 +02:00
fiaxh bcb96909c9 Roster versioning 2017-05-22 01:02:09 +02:00
Marvin W 9728e832b1
qlite/libdino: optimize db access 2017-04-26 21:48:53 +02:00
fiaxh 75e51b5ed3 MessageStorage/Processor, correctly resolve conversations (fixup 22adbd3) 2017-04-04 15:57:35 +02:00
fiaxh ea5d3e50c6 Start private conversation with MUC occupant via occupant menu 2017-04-03 19:48:01 +02:00
fiaxh 22adbd38dc Handle MUC private messages 2017-03-31 16:39:28 +02:00
Marvin W b63e5f5f9f
Some caching and fix gpgme on some systems 2017-03-24 15:18:39 +01:00
Marvin W ef0483765a
Small bug fixes and compatibility with Vala 0.36 2017-03-23 16:48:26 +01:00
fiaxh fa78573b05 Move some database interaction into entities
fixes #2
2017-03-23 14:36:53 +01:00
fiaxh 1eca8c6f67 Fix message stanza default type 2017-03-18 00:12:27 +01:00