This commit is contained in:
Grishka 2024-05-04 21:20:20 +03:00
parent 0e868f0be0
commit 4a1b1e19e8
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ public class MediaGridStatusDisplayItem extends StatusDisplayItem{
} }
controllers.add(c); controllers.add(c);
if (item.status.translation != null){ if (item.status.translation!=null && item.status.translation.mediaAttachments!=null){
if(item.status.translationState==Status.TranslationState.SHOWN){ if(item.status.translationState==Status.TranslationState.SHOWN){
if(!item.translatedAttachments.containsKey(att.id)){ if(!item.translatedAttachments.containsKey(att.id)){
Optional<Translation.MediaAttachment> translatedAttachment=Arrays.stream(item.status.translation.mediaAttachments).filter(mediaAttachment->mediaAttachment.id.equals(att.id)).findFirst(); Optional<Translation.MediaAttachment> translatedAttachment=Arrays.stream(item.status.translation.mediaAttachments).filter(mediaAttachment->mediaAttachment.id.equals(att.id)).findFirst();