remove persist plugin from users
This commit is contained in:
parent
713eb828c8
commit
9676f95cf4
2 changed files with 0 additions and 8 deletions
|
|
@ -50,7 +50,6 @@ import { promiseInterval } from 'src/services/promise_interval/promise_interval.
|
|||
export const useUsersStore = defineStore('users', {
|
||||
state: () => ({
|
||||
loggingIn: false,
|
||||
lastLoginName: null,
|
||||
currentUser: null,
|
||||
users: new Map(),
|
||||
usersByName: new Map(),
|
||||
|
|
@ -616,7 +615,6 @@ export const useUsersStore = defineStore('users', {
|
|||
user.muteIds = new Set()
|
||||
user.domainMutes = new Set()
|
||||
|
||||
this.lastLoginName = user.screen_name
|
||||
useTimelinesStore().deactivateAll()
|
||||
useStatusesStore().resetStatuses()
|
||||
|
||||
|
|
@ -739,7 +737,6 @@ export const useUsersStore = defineStore('users', {
|
|||
oauth.clearToken()
|
||||
|
||||
this.currentUser = null
|
||||
this.lastLoginName = null
|
||||
|
||||
useNotificationsStore().deactivate()
|
||||
|
||||
|
|
@ -787,7 +784,4 @@ export const useUsersStore = defineStore('users', {
|
|||
})
|
||||
},
|
||||
},
|
||||
persist: {
|
||||
paths: ['lastLoginName'],
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -679,7 +679,6 @@ describe('Users store', () => {
|
|||
expect(store.usersByName).to.have.length(1)
|
||||
expect(store.usersByURL).to.have.length(1)
|
||||
expect(store.relationships).to.have.length(0)
|
||||
expect(store.lastLoginName).to.eql(userScreenName)
|
||||
spies.forEach((spy, index) => {
|
||||
expect(spy, `Spy ${index} has failed`).to.have.been.called
|
||||
})
|
||||
|
|
@ -783,7 +782,6 @@ describe('Users store', () => {
|
|||
expect(store.loggedIn).to.eql(true)
|
||||
await store.logout()
|
||||
expect(store.loggedIn).to.eql(false)
|
||||
expect(store.lastLoginName).to.eql(null)
|
||||
expect(revokeApi).to.have.been.called
|
||||
expect(store.users).to.have.length(0)
|
||||
expect(store.usersByName).to.have.length(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue