mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Do not use SQLite anymore for users
This commit is contained in:
@ -3,12 +3,3 @@
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
enum UserPageVisibility { PRIVATE, PUBLIC, OPEN }
|
||||
|
||||
/// Find the visibility level matching a string
|
||||
UserPageVisibility userPageVisibilityFromString(String str) {
|
||||
for (int i = 0; i < UserPageVisibility.values.length; i++)
|
||||
if (UserPageVisibility.values[i].toString() == str)
|
||||
return UserPageVisibility.values[i];
|
||||
|
||||
throw "$str is not a valid user page visibility level!";
|
||||
}
|
||||
|
Reference in New Issue
Block a user