mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-07 15:41:38 +01:00
Rename displayThreadsBetaNotice method
This commit is contained in:
parent
9e48b02b73
commit
2bb6e77be0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user