Skip to content

Commit 198281a

Browse files
alex-signalalan-signal
authored andcommitted
Show 'return to call' if local user is in the call group.
1 parent 8e8d866 commit 198281a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationUpdateItem.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ private void present(ConversationMessage conversationMessage, @NonNull Optional<
212212

213213
int text = 0;
214214
if (Util.hasItems(uuids)) {
215-
if (GroupCallUpdateDetailsUtil.parse(conversationMessage.getMessageRecord().getBody()).getIsCallFull()) {
215+
if (uuids.contains(TextSecurePreferences.getLocalUuid(getContext()))) {
216+
text = R.string.ConversationUpdateItem_return_to_call;
217+
} else if (GroupCallUpdateDetailsUtil.parse(conversationMessage.getMessageRecord().getBody()).getIsCallFull()) {
216218
text = R.string.ConversationUpdateItem_call_is_full;
217219
} else {
218-
text = uuids.contains(TextSecurePreferences.getLocalUuid(getContext())) ? R.string.ConversationUpdateItem_return_to_call : R.string.ConversationUpdateItem_join_call;
220+
text = R.string.ConversationUpdateItem_join_call;
219221
}
220222
}
221223

0 commit comments

Comments
 (0)