This commit is contained in:
Tlaster 2020-04-24 14:43:51 +08:00
parent dcaff8a24b
commit c7f44b49ae
1 changed files with 9 additions and 1 deletions

View File

@ -152,6 +152,14 @@ class ConversationLoader(
}
if (loadReplies || noSinceMaxId || sinceId != null && sinceSortId > status.sort_id) {
// Load replies
try {
if (details.type == AccountType.TWITTER) {
// try to load thread
statuses.addAll(loadTwitterWebReplies(details, twitter))
}
} catch (e: MicroBlogException) {
// Ignore
}
val query = SearchQuery()
query.count(100)
if (details.type == AccountType.TWITTER) {
@ -171,7 +179,7 @@ class ConversationLoader(
// Ignore for now
}
}
return statuses.mapTo(PaginatedArrayList()) {
return statuses.distinctBy { it.id }.mapTo(PaginatedArrayList()) {
it.toParcelable(details, profileImageSize)
}.apply {
this.nextPage = nextPagination