mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #137 - Pinned statuses do not have the icon for other accounts
This commit is contained in:
parent
5fcb3e12ae
commit
0c19da62c0
1 changed files with 3 additions and 0 deletions
|
@ -572,6 +572,9 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
|
|||
.observe(getViewLifecycleOwner(), pinnedStatuses -> accountsVM.getAccountStatuses(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, accountTimeline.id, null, null, null, exclude_replies, exclude_reblogs, media_only, false, MastodonHelper.statusesPerCall(requireActivity()))
|
||||
.observe(getViewLifecycleOwner(), otherStatuses -> {
|
||||
if (otherStatuses != null && otherStatuses.statuses != null) {
|
||||
for (Status status : pinnedStatuses.statuses) {
|
||||
status.pinned = true;
|
||||
}
|
||||
otherStatuses.statuses.addAll(0, pinnedStatuses.statuses);
|
||||
initializeStatusesCommonView(otherStatuses);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue