aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-03-31closed some cursors under error conditionsDaniel Gultsch1-3/+13
2016-03-11close cursor in caps db queryDaniel Gultsch1-1/+3
2016-03-04mark oob messages and always display download buttonDaniel Gultsch1-1/+6
2016-03-02Fixes FS#147: Disable OMEMOsteckbrief1-5/+5
2016-02-15basic support for XEP-0308: Last Message Correction. fixes #864Daniel Gultsch1-1/+13
2016-02-12Imports organizedsteckbrief1-7/+0
2016-02-12database error while upgrading from db version 14 fixedsteckbrief1-1/+1
2016-01-23Persisitence and loading for ServiceDiscoveryResultStephen Paul Weber1-1/+40
2016-01-16removed some unused methods from db backendDaniel Gultsch1-83/+0
2016-01-15catch exception when reading message id from databaseDaniel Gultsch1-8/+12
2016-01-13use batch transactions when writing rosterDheeraj CVR1-0/+3
Fixes https://github.com/siacs/Conversations/issues/1648
2015-12-23show certificate informationDaniel Gultsch1-5/+34
2015-12-23save certificate when verifying with x509Daniel Gultsch1-2/+29
2015-12-11get rid of lastMessageTransmitted in favor of db queryDaniel Gultsch1-0/+14
2015-12-02Unset all PGP signatures oncefiaxh1-1/+10
... so they will be redone to match the changed status.
2015-12-01initial tor supportDaniel Gultsch1-109/+113
2015-11-06Move migration 19 before 17Andreas Straub1-3/+6
Migration 17 depends on Account deserialization, so any migrations that touch the accounts table need to be applied beforehand. Re-writing the migration to work directly on the database would lead to a lot of code duplication, so it's not worth it at this time, but might become necessary later on to avoid dependency cycles.
2015-10-31explicitly mark verified omemo keys in UIDaniel Gultsch1-2/+3
2015-10-29push CN into nick pep node when uploading certificate. subscribe to nick nodeDaniel Gultsch1-1/+5
2015-10-14make unread status and notifications presistent across restartsDaniel Gultsch1-1/+5
2015-09-20Iterator to go through all messages of a conversationfiaxh1-0/+38
2015-09-05add null pointer check to db migrationDaniel Gultsch1-1/+5
2015-09-05Never build a session with oneselfAndreas Straub1-11/+56
If we detect our own ID is not in our own devicelist on receiving an update, we reannounce ourselves. This used to have the side effect of modifying the list of devices we thought were in the update set, causing us to accidentally build a session with ourselves. This lead to our own key being set to TRUSTED_INACTIVE, resulting in red lock icons on messages sent by the own device. We fix this by having publishOwnDeviceId() operate on a copy of the original set. This commit also includes a db migration which deletes sessions with oneself and sets own keys back to TRUSTED.
2015-08-11Merge tag '1.5.2' into trz/rebaselookshe1-3/+87
2015-08-01Let UNTRUSTED/UNDECIDED keys become INACTIVEAndreas Straub1-9/+10
2015-07-31added missing carbon column message table create statementDaniel Gultsch1-0/+1
fixes #1310
2015-07-29Tag carbon messages in parser, adapt session logicAndreas Straub1-1/+5
Messages sent from another device of the own account are now explicitly tagged as carboned message. The session detection logic now uses this tag to find "session borders".
2015-07-29Refactor out inner classes, cache trust storeAndreas Straub1-130/+131
Moves SQLiteAxolotlStore and XmppAxolotlSession into proper classes. IdentityKeys trust statuses are now cached in an LruCache to prevent hammering the database when rendering the UI.
2015-07-21Use properly fixed numeral values in Trust enumAndreas Straub1-5/+5
Why, oh God, why?! #thanksjamesgosling
2015-07-20Fix getNumTrustedKeysAndreas Straub1-2/+4
2015-07-20Lock TrustKeys if no trusted keys are availableAndreas Straub1-0/+14
2015-07-20Fix axolotl database migrationAndreas Straub1-2/+5
Can't call getWritableDatabase in recreateAxolotlDb()
2015-07-19Ask for key trust when sending messagesAndreas Straub1-0/+9
If the contact (or the own account) has keys that have UNDECIDED trust, we now drop the user into the new TrustKeysActivity, where they have to decide for each new key whether it should be TRUSTED or UNTRUSTED.
2015-07-19Fix trust status for outgoing messagesAndreas Straub1-13/+24
Tag sent messages with own fingerprint, set own fingerprint as always trusted, include own fingerprint in database trust search, explicitly reset trust colorfilter
2015-07-19Fix setIdentityKeyTrust update statementAndreas Straub1-2/+2
2015-07-19Fix IdentityKey storage modelAndreas Straub1-2/+6
Added proper UNIQUE statement
2015-07-19Overhauled Message taggingAndreas Straub1-35/+58
Messages are now tagged with the IdentityKey fingerprint of the originating session. IdentityKeys have one of three trust states: undecided (default), trusted, and untrusted/not yet trusted.
2015-07-19Fix getSubDeviceSessions SQL queryAndreas Straub1-1/+1
2015-07-19Clean up loggingAndreas Straub1-4/+4
Add a fixed prefix to axolotl-related log messages, set log levels sensibly.
2015-07-19Add basic PEP managemend UI to EditAccountActivityAndreas Straub1-0/+21
EditAccountActivity now show own fingerprint, and gives an option to regenerate local keying material (and wipe all sessions associated with the old keys in the process). It also now displays a list of other own devices, and gives an option to remove all but the current device.
2015-07-19Refactor axolotl database recreationAndreas Straub1-8/+14
2015-07-19Save IdentityKeys in databaseAndreas Straub1-0/+85
2015-07-19DatabaseBackend bugfixesAndreas Straub1-0/+5
Don't leak cursors, initially create tables
2015-07-19Reformat code to use tabsAndreas Straub1-17/+17
This really sucks to do it like this. Sorry. :(
2015-07-19Reworked axolotl protocol layerAndreas Straub1-27/+63
Numerous fixes
2015-07-19CryptoNext persistance layer mockupAndreas Straub1-1/+262
Initial sketch of the peripheral storage infrastructure for the new axolotl-based encryption scheme.
2015-07-03avoid very rare npeDaniel Gultsch1-2/+1
2015-07-03avoid very rare npeDaniel Gultsch1-2/+1
2015-06-19renaming eu.siacs.conversations to de.thedevstack.conversationsplussteckbrief1-400/+0
"renaming eu.siacs.conversations to de.thedevstack.conversationsplus" package renaming completed
2015-05-14Force Nameprepping of JID domain partsAndreas Straub1-1/+86
The IDN.toAscii()/IDN.toUnicode() family only namepreps the original domain passed to it if it contained non-ASCII characters. This means that for all-ASCII domains, no canonicalization is performed, which leads to issues like case-sensitivity. This workaround explicitly namepreps domain parts before calling IDN.toAscii() on them, in order to get a canonicalized representation (most notably, case invariance). A basic DB migration is also included.