remove boosted status when the original author was blocked or muted (#1335)

This commit is contained in:
Konrad Pozniak 2019-06-22 08:05:24 +02:00 committed by GitHub
commit e6d91c1cf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -870,7 +870,8 @@ public class TimelineFragment extends SFragment implements
Iterator<Either<Placeholder, Status>> iterator = statuses.iterator();
while (iterator.hasNext()) {
Status status = iterator.next().asRightOrNull();
if (status != null && status.getAccount().getId().equals(accountId)) {
if (status != null &&
(status.getAccount().getId().equals(accountId) || status.getActionableStatus().getAccount().getId().equals(accountId))) {
iterator.remove();
}
}