mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Fix missing group context on message records.
This commit is contained in:
@@ -19,6 +19,7 @@ package org.thoughtcrime.securesms.database.model;
|
||||
import android.content.Context;
|
||||
import android.text.Spannable;
|
||||
import android.text.SpannableString;
|
||||
import android.text.TextUtils;
|
||||
import android.text.style.RelativeSizeSpan;
|
||||
import android.text.style.StyleSpan;
|
||||
|
||||
@@ -309,6 +310,14 @@ public abstract class MessageRecord extends DisplayRecord {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (messageExtras != null && messageExtras.gv2UpdateDescription != null) {
|
||||
return messageExtras.gv2UpdateDescription.gv2ChangeDescription;
|
||||
}
|
||||
|
||||
if (TextUtils.isEmpty(getBody())) {
|
||||
return null;
|
||||
}
|
||||
|
||||
DecryptedGroupV2Context decryptedGroupV2Context;
|
||||
try {
|
||||
byte[] decoded = Base64.decode(getBody());
|
||||
|
||||
Reference in New Issue
Block a user