Respect autodownload settings when opening stories.
This commit is contained in:
parent
570b143582
commit
a49e781c8d
1 changed files with 3 additions and 4 deletions
|
@ -106,10 +106,9 @@ object Stories {
|
|||
}
|
||||
|
||||
Log.d(TAG, "Enqueuing downloads for up to $limit stories for $recipientId (force: $force)")
|
||||
SignalDatabase.mms.getUnreadStories(recipientId, limit).use {
|
||||
while (it.next != null) {
|
||||
val record = it.current as MmsMessageRecord
|
||||
enqueueAttachmentsFromStoryForDownloadSync(record, force)
|
||||
SignalDatabase.mms.getUnreadStories(recipientId, limit).use { reader ->
|
||||
reader.forEach {
|
||||
enqueueAttachmentsFromStoryForDownloadSync(it as MmsMessageRecord, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue