mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Add spoiler format style.
This commit is contained in:
@@ -32,8 +32,8 @@ public final class MentionUtil {
|
||||
private MentionUtil() { }
|
||||
|
||||
@WorkerThread
|
||||
public static @Nullable CharSequence updateBodyWithDisplayNames(@NonNull Context context, @NonNull MessageRecord messageRecord) {
|
||||
return updateBodyWithDisplayNames(context, messageRecord, messageRecord.getDisplayBody(context)).getBody();
|
||||
public static @NonNull UpdatedBodyAndMentions updateBodyWithDisplayNames(@NonNull Context context, @NonNull MessageRecord messageRecord) {
|
||||
return updateBodyWithDisplayNames(context, messageRecord, messageRecord.getDisplayBody(context));
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
|
||||
@@ -59,7 +59,7 @@ fun List<BodyRange>?.toBodyRangeList(): BodyRangeList? {
|
||||
when (bodyRange.style) {
|
||||
BodyRange.Style.BOLD -> style = BodyRangeList.BodyRange.Style.BOLD
|
||||
BodyRange.Style.ITALIC -> style = BodyRangeList.BodyRange.Style.ITALIC
|
||||
BodyRange.Style.SPOILER -> Unit
|
||||
BodyRange.Style.SPOILER -> style = BodyRangeList.BodyRange.Style.SPOILER
|
||||
BodyRange.Style.STRIKETHROUGH -> style = BodyRangeList.BodyRange.Style.STRIKETHROUGH
|
||||
BodyRange.Style.MONOSPACE -> style = BodyRangeList.BodyRange.Style.MONOSPACE
|
||||
else -> Unit
|
||||
|
||||
Reference in New Issue
Block a user