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

fork-5.53.8
Alex Hart 2021-01-06 09:32:07 -04:00 zatwierdzone przez Alan Evans
rodzic 8e8d86606b
commit 198281aa47
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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;
}
}