Show 'return to call' if local user is in the call group.
This commit is contained in:
parent
8e8d86606b
commit
198281aa47
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue