mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-03 23:15:44 +01:00
Have DatabaseFactory.getSmsDatabase() return MessageDatabase.
Slowly moving towards a single interface.
This commit is contained in:
committed by
Alex Hart
parent
2cf9eb69eb
commit
190ca9eddd
@@ -272,7 +272,7 @@ public class LegacyMigrationJob extends MigrationJob {
|
||||
|
||||
Log.i(TAG, pendingAttachments.size() + " pending parts.");
|
||||
for (DatabaseAttachment attachment : pendingAttachments) {
|
||||
final Reader reader = mmsDb.readerFor(mmsDb.getMessage(attachment.getMmsId()));
|
||||
final Reader reader = MmsDatabase.readerFor(mmsDb.getMessageCursor(attachment.getMmsId()));
|
||||
final MessageRecord record = reader.getNext();
|
||||
|
||||
if (attachment.hasData()) {
|
||||
|
||||
Reference in New Issue
Block a user