Add CW to replies to own posts with CW

This commit is contained in:
Grishka 2022-04-07 16:16:26 +03:00
parent b9ba198408
commit dd3233e615
1 changed files with 6 additions and 0 deletions

View File

@ -446,6 +446,12 @@ public class ComposeFragment extends ToolbarFragment implements OnBackPressedLis
if(savedInstanceState==null){
mainEditText.setText(initialText);
mainEditText.setSelection(mainEditText.length());
if(!TextUtils.isEmpty(replyTo.spoilerText) && AccountSessionManager.getInstance().isSelf(accountID, replyTo.account)){
hasSpoiler=true;
spoilerEdit.setVisibility(View.VISIBLE);
spoilerEdit.setText(replyTo.spoilerText);
spoilerBtn.setSelected(true);
}
}
}else{
replyText.setVisibility(View.GONE);