Add file server instability modal

This commit is contained in:
nielsandriesse
2021-05-19 15:25:36 +10:00
parent e79d23c910
commit 747a27ddda
5 changed files with 96 additions and 18 deletions

View File

@@ -763,5 +763,13 @@ object TextSecurePreferences {
@JvmStatic
fun shouldUpdateProfile(context: Context, profileUpdateTime: Long) =
profileUpdateTime > getLongPreference(context, LAST_PROFILE_UPDATE_TIME, 0)
fun hasSeenFileServerInstabilityNotification(context: Context): Boolean {
return getBooleanPreference(context, "has_seen_file_server_instability_notification", false)
}
fun setHasSeenFileServerInstabilityNotification(context: Context) {
setBooleanPreference(context, "has_seen_file_server_instability_notification", true)
}
// endregion
}