Skip to content

Commit

Permalink
Fix scheduled view once message looking weird.
Browse files Browse the repository at this point in the history
  • Loading branch information
clark-signal authored and greyson-signal committed Jan 27, 2023
1 parent b94f550 commit a14fc82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.thoughtcrime.securesms.util.ContextUtil;
import org.thoughtcrime.securesms.util.DrawableUtil;
import org.thoughtcrime.securesms.util.MediaUtil;
import org.thoughtcrime.securesms.util.MessageRecordUtil;
import org.thoughtcrime.securesms.util.Util;

public class ViewOnceMessageView extends LinearLayout {
Expand Down Expand Up @@ -112,7 +113,7 @@ private void presentText(@NonNull MmsMessageRecord messageRecord, boolean hasWal
int iconColor;
boolean showProgress = false;

if (messageRecord.isOutgoing() && networkInProgress(messageRecord)) {
if (messageRecord.isOutgoing() && networkInProgress(messageRecord) && !MessageRecordUtil.isScheduled(messageRecord)) {
iconColor = openedIconColor;
text.setText(R.string.RevealableMessageView_media);
icon.setImageResource(0);
Expand Down

0 comments on commit a14fc82

Please sign in to comment.