Skip to content

Commit

Permalink
Fix #1272
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaster committed Apr 24, 2020
1 parent dcaff8a commit c7f44b4
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit c7f44b4

Please sign in to comment.