mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 19:56:02 +01:00
Fix 'Unknown' shown for PNI group invites.
This commit is contained in:
committed by
Greyson Parrelli
parent
b52f9588ef
commit
e945efac8b
@@ -98,6 +98,13 @@ sealed class ServiceId(val libSignalServiceId: LibSignalServiceId) {
|
||||
@JvmStatic
|
||||
@Throws(IllegalArgumentException::class)
|
||||
fun parseOrThrow(bytes: ByteString): ServiceId = parseOrThrow(bytes.toByteArray())
|
||||
|
||||
/** Parses a ServiceId serialized as a ByteString. Returns [ACI.UNKNOWN] if not parseable. */
|
||||
@JvmStatic
|
||||
@Throws(IllegalArgumentException::class)
|
||||
fun parseOrUnknown(bytes: ByteString): ServiceId {
|
||||
return parseOrNull(bytes) ?: ACI.UNKNOWN
|
||||
}
|
||||
}
|
||||
|
||||
val rawUuid: UUID = libSignalServiceId.rawUUID
|
||||
|
||||
Reference in New Issue
Block a user