fix deleted status reappearing in the timeline (#1225)
* fix deleted status reappearing in the timeline * fix crash * fix tests * fix instrumented tests * add test for deleted status in timeline
This commit is contained in:
parent
53696f752a
commit
cb82202d4d
6 changed files with 65 additions and 7 deletions
|
|
@ -144,6 +144,11 @@ class TimelineRepositoryImpl(
|
|||
}
|
||||
|
||||
Single.fromCallable {
|
||||
|
||||
if(statuses.isNotEmpty()) {
|
||||
timelineDao.deleteRange(accountId, statuses.last().id, statuses.first().id)
|
||||
}
|
||||
|
||||
for (status in statuses) {
|
||||
timelineDao.insertInTransaction(
|
||||
status.toEntity(accountId, htmlConverter, gson),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue