mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-26 16:52:13 +00:00
Enhanced import/export support.
1) Allow imports from the stock SMS database at any time. 2) Provide plaintext export support, in a format compatible with the "SMS Backup And Restore" app. 3) Fix the DB weirdness on encrypted restore that previously required killing the app.
This commit is contained in:
@@ -102,6 +102,11 @@ public class EncryptingSmsDatabase extends SmsDatabase {
|
||||
Types.ENCRYPTION_SYMMETRIC_BIT);
|
||||
}
|
||||
|
||||
public Reader getMessages(MasterSecret masterSecret, int skip, int limit) {
|
||||
Cursor cursor = super.getMessages(skip, limit);
|
||||
return new DecryptingReader(masterSecret, cursor);
|
||||
}
|
||||
|
||||
public Reader getOutgoingMessages(MasterSecret masterSecret) {
|
||||
Cursor cursor = super.getOutgoingMessages();
|
||||
return new DecryptingReader(masterSecret, cursor);
|
||||
|
||||
Reference in New Issue
Block a user