Fix lobby copy when another of your devices is solely already in the group call.

This commit is contained in:
Cody Henthorne
2021-08-23 10:39:36 -04:00
committed by Alex Hart
parent b7a067e954
commit 194975d068
3 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,9 @@ data class CallParticipant constructor(
val isPrimary: Boolean
get() = deviceOrdinal == DeviceOrdinal.PRIMARY
val isSelf: Boolean
get() = recipient.isSelf
fun getRecipientDisplayName(context: Context): String {
return if (recipient.isSelf && isPrimary) {
context.getString(R.string.CallParticipant__you)