Fix issue #123 - Crash with direct messages and Friendica

This commit is contained in:
Thomas 2022-06-03 15:34:35 +02:00
parent a0511a0a79
commit 0ab394c64f
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ public class ConversationAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
MastodonHelper.loadPPMastodon(imageView, account);
holder.binding.participantsList.addView(imageView);
}
if (conversation.last_status == null) {
return;
}
//---- SPOILER TEXT -----
boolean expand_cw = sharedpreferences.getBoolean(context.getString(R.string.SET_EXPAND_CW), false);
if (conversation.last_status.spoiler_text != null && !conversation.last_status.spoiler_text.trim().isEmpty()) {