mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
Fix 'Unknown' shown for PNI group invites.
This commit is contained in:
committed by
Greyson Parrelli
parent
b52f9588ef
commit
e945efac8b
@@ -452,11 +452,11 @@ public final class ConversationUpdateItem extends FrameLayout
|
||||
boolean isRingingOnLocalDevice = groupCallUpdateDetails.isRingingOnLocalDevice;
|
||||
boolean endedRecently = GroupCallUpdateDetailsUtil.checkCallEndedRecently(groupCallUpdateDetails);
|
||||
UpdateDescription updateDescription = MessageRecord.getGroupCallUpdateDescription(getContext(), conversationMessage.getMessageRecord().getBody(), true);
|
||||
Collection<ACI> acis = updateDescription.getMentioned();
|
||||
Collection<ServiceId> serviceIds = updateDescription.getMentioned();
|
||||
|
||||
int text = 0;
|
||||
if (Util.hasItems(acis) || isRingingOnLocalDevice) {
|
||||
if (acis.contains(SignalStore.account().requireAci())) {
|
||||
if (Util.hasItems(serviceIds) || isRingingOnLocalDevice) {
|
||||
if (serviceIds.contains(SignalStore.account().requireAci())) {
|
||||
text = R.string.ConversationUpdateItem_return_to_call;
|
||||
} else if (GroupCallUpdateDetailsUtil.parse(conversationMessage.getMessageRecord().getBody()).isCallFull) {
|
||||
text = R.string.ConversationUpdateItem_call_is_full;
|
||||
|
||||
Reference in New Issue
Block a user