Rename displayThreadsBetaNotice method

This commit is contained in:
ariskotsomitopoulos 2022-04-05 13:10:59 +03:00
parent 9e48b02b73
commit 2bb6e77be0

View File

@ -2362,7 +2362,7 @@ class TimelineFragment @Inject constructor(
if (vectorPreferences.areThreadMessagesEnabled()) { if (vectorPreferences.areThreadMessagesEnabled()) {
navigateToThreadTimeline(action.eventId, action.startsThread) navigateToThreadTimeline(action.eventId, action.startsThread)
} else { } else {
displayThreadsBetaNotice() displayThreadsBetaOptInDialog()
} }
} }
@ -2385,11 +2385,7 @@ class TimelineFragment @Inject constructor(
} }
} }
/** private fun displayThreadsBetaOptInDialog() =
* Display a dialog that will let the user to enable threads
*/
private fun displayThreadsBetaNotice() =
activity?.let { activity?.let {
MaterialAlertDialogBuilder(it) MaterialAlertDialogBuilder(it)
.setTitle(R.string.threads_beta_enable_notice_title) .setTitle(R.string.threads_beta_enable_notice_title)