Loading app/src/main/java/foundation/e/apps/utils/modules/DataStoreModule.kt +7 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class DataStoreModule @Inject constructor( * * Modification for issue: https://gitlab.e.foundation/e/backlog/-/issues/5168 * Previously this method would also remove [USERTYPE]. * But now it is only to be done from [saveUserType] passing [User.UNAVAILABLE] when clicking logout. * To clear this value, call [clearUserType]. */ suspend fun destroyCredentials() { context.dataStore.edit { Loading @@ -79,6 +79,12 @@ class DataStoreModule @Inject constructor( } } suspend fun clearUserType() { context.dataStore.edit { it.remove(USERTYPE) } } /** * TOC status */ Loading Loading
app/src/main/java/foundation/e/apps/utils/modules/DataStoreModule.kt +7 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class DataStoreModule @Inject constructor( * * Modification for issue: https://gitlab.e.foundation/e/backlog/-/issues/5168 * Previously this method would also remove [USERTYPE]. * But now it is only to be done from [saveUserType] passing [User.UNAVAILABLE] when clicking logout. * To clear this value, call [clearUserType]. */ suspend fun destroyCredentials() { context.dataStore.edit { Loading @@ -79,6 +79,12 @@ class DataStoreModule @Inject constructor( } } suspend fun clearUserType() { context.dataStore.edit { it.remove(USERTYPE) } } /** * TOC status */ Loading