Show 'return to call' if local user is in the call group.

This commit is contained in:
Alex Hart 2021-01-06 09:32:07 -04:00 committed by Alan Evans
parent 8e8d86606b
commit 198281aa47

View file

@ -212,10 +212,12 @@ public final class ConversationUpdateItem extends LinearLayout
int text = 0;
if (Util.hasItems(uuids)) {
if (GroupCallUpdateDetailsUtil.parse(conversationMessage.getMessageRecord().getBody()).getIsCallFull()) {
if (uuids.contains(TextSecurePreferences.getLocalUuid(getContext()))) {
text = R.string.ConversationUpdateItem_return_to_call;
} else if (GroupCallUpdateDetailsUtil.parse(conversationMessage.getMessageRecord().getBody()).getIsCallFull()) {
text = R.string.ConversationUpdateItem_call_is_full;
} else {
text = uuids.contains(TextSecurePreferences.getLocalUuid(getContext())) ? R.string.ConversationUpdateItem_return_to_call : R.string.ConversationUpdateItem_join_call;
text = R.string.ConversationUpdateItem_join_call;
}
}