mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Convert GroupId to Kotlin.
This commit is contained in:
committed by
Jeffrey Starke
parent
9350438866
commit
bea204ab82
@@ -197,28 +197,28 @@ class Recipient(
|
||||
val isMmsGroup: Boolean
|
||||
get() {
|
||||
val groupId = resolved.groupIdValue
|
||||
return groupId != null && groupId.isMms()
|
||||
return groupId != null && groupId.isMms
|
||||
}
|
||||
|
||||
/** Whether the recipient represents a Signal group. */
|
||||
val isPushGroup: Boolean
|
||||
get() {
|
||||
val groupId = resolved.groupIdValue
|
||||
return groupId != null && groupId.isPush()
|
||||
return groupId != null && groupId.isPush
|
||||
}
|
||||
|
||||
/** Whether the recipient represents a V1 Signal group. These types of groups were deprecated in 2020. */
|
||||
val isPushV1Group: Boolean
|
||||
get() {
|
||||
val groupId = resolved.groupIdValue
|
||||
return groupId != null && groupId.isV1()
|
||||
return groupId != null && groupId.isV1
|
||||
}
|
||||
|
||||
/** Whether the recipient represents a V2 Signal group. */
|
||||
val isPushV2Group: Boolean
|
||||
get() {
|
||||
val groupId = resolved.groupIdValue
|
||||
return groupId != null && groupId.isV2()
|
||||
return groupId != null && groupId.isV2
|
||||
}
|
||||
|
||||
/** Whether the recipient represents a distribution list (a specific list of people to send a story to). */
|
||||
|
||||
Reference in New Issue
Block a user