Last fixes

This commit is contained in:
Thomas 2020-11-14 15:09:52 +01:00
parent ddcbbfe670
commit f6ddd99449
1 changed files with 5 additions and 1 deletions

View File

@ -743,7 +743,11 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
});
if (peertube.isCommentsEnabled()) {
binding.postCommentButton.setVisibility(View.VISIBLE);
if (Helper.isLoggedIn(PeertubeActivity.this)) {
binding.postCommentButton.setVisibility(View.VISIBLE);
} else {
binding.postCommentButton.setVisibility(View.GONE);
}
CommentVM commentViewModel = new ViewModelProvider(PeertubeActivity.this).get(CommentVM.class);
commentViewModel.getThread(sepiaSearch ? peertubeInstance : null, videoUuid, max_id).observe(PeertubeActivity.this, this::manageVIewComment);
if (Helper.isLoggedIn(PeertubeActivity.this) && !sepiaSearch) {