Update unsupported message UI.

This commit is contained in:
Michelle Tang
2025-08-27 13:02:56 -04:00
parent 8322bf3ecc
commit d4f08e6d46
10 changed files with 42 additions and 2 deletions

View File

@@ -634,6 +634,16 @@ public final class ConversationUpdateItem extends FrameLayout
passthroughClickListener.onClick(v);
}
});
} else if (conversationMessage.getMessageRecord().isUnsupported()) {
actionButton.setText(R.string.ConversationFragment__update_build);
actionButton.setVisibility(VISIBLE);
actionButton.setOnClickListener(v -> {
if (batchSelected.isEmpty() && eventListener != null) {
eventListener.onUpdateSignalClicked();
} else {
passthroughClickListener.onClick(v);
}
});
} else {
actionButton.setVisibility(GONE);
actionButton.setOnClickListener(null);

View File

@@ -3040,6 +3040,10 @@ class ConversationFragment :
UnverifiedProfileNameBottomSheet.show(parentFragmentManager, forGroup)
}
override fun onUpdateSignalClicked() {
PlayStoreUtil.openPlayStoreOrOurApkDownloadPage(requireContext())
}
override fun onJoinGroupCallClicked() {
val activity = activity ?: return
val recipient = viewModel.recipientSnapshot ?: return