mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-04 15:35:38 +01:00
Add ability to set group member label from conversation settings.
This commit is contained in:
committed by
Cody Henthorne
parent
415dbd1b61
commit
7d1897a9d2
+6
@@ -52,6 +52,12 @@ class MemberLabelRepository private constructor(
|
||||
@WorkerThread
|
||||
fun getLabelJava(groupId: GroupId.V2, recipient: Recipient): MemberLabel? = runBlocking { getLabel(groupId, recipient) }
|
||||
|
||||
/**
|
||||
* Checks whether the [Recipient] has permission to set their member label in the given group (blocking version for Java compatibility).
|
||||
*/
|
||||
@WorkerThread
|
||||
fun canSetLabelJava(groupId: GroupId.V2, recipient: Recipient): Boolean = runBlocking { canSetLabel(groupId, recipient) }
|
||||
|
||||
/**
|
||||
* Gets the member label for a specific recipient in the group.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user