login/logout troubles
This commit is contained in:
parent
08541b672b
commit
55324aea13
4 changed files with 106 additions and 32 deletions
|
|
@ -792,7 +792,7 @@ const statuses = {
|
|||
fetchRebloggedByUsers({
|
||||
id,
|
||||
credentials: useOAuthStore().token,
|
||||
}).then(({ data }) => data),,
|
||||
}).then(({ data }) => data),
|
||||
]).then(([favoritedByUsers, rebloggedByUsers]) => {
|
||||
commit('addFavs', {
|
||||
id,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import Cookies from 'js-cookie'
|
||||
import {
|
||||
compact,
|
||||
concat,
|
||||
|
|
@ -717,7 +718,6 @@ const users = {
|
|||
.then(() => {
|
||||
store.commit('clearCurrentUser')
|
||||
store.dispatch('disconnectFromSocket')
|
||||
oauth.clearToken()
|
||||
store.dispatch('stopFetchingTimeline', 'friends')
|
||||
store.dispatch('stopFetchingNotifications')
|
||||
useListsStore().stopFetching()
|
||||
|
|
@ -726,6 +726,8 @@ const users = {
|
|||
store.commit('clearNotifications')
|
||||
store.commit('resetStatuses')
|
||||
store.dispatch('resetChats')
|
||||
oauth.clearToken()
|
||||
Cookies.remove('__Host-pleroma_key', { path: '/' })
|
||||
useInterfaceStore().setLastTimeline('public-timeline')
|
||||
useInterfaceStore().setLayoutWidth(windowWidth())
|
||||
useInterfaceStore().setLayoutHeight(windowHeight())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue