mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Add additional text formatting support.
This commit is contained in:
committed by
Greyson Parrelli
parent
1c3636eedd
commit
25028e0e6f
@@ -4,7 +4,6 @@ package org.thoughtcrime.securesms.database.model
|
||||
|
||||
import com.google.protobuf.ByteString
|
||||
import org.thoughtcrime.securesms.database.model.databaseprotos.BodyRangeList
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags
|
||||
import org.whispersystems.signalservice.internal.push.SignalServiceProtos.BodyRange
|
||||
|
||||
/**
|
||||
@@ -49,7 +48,7 @@ fun BodyRangeList.Builder.addButton(label: String, action: String, start: Int, l
|
||||
}
|
||||
|
||||
fun List<BodyRange>?.toBodyRangeList(): BodyRangeList? {
|
||||
if (this == null || !FeatureFlags.textFormatting()) {
|
||||
if (this == null) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user