follow requests module leftovers
This commit is contained in:
parent
13d799c14c
commit
2467e56556
3 changed files with 3 additions and 12 deletions
|
|
@ -148,8 +148,7 @@ const Notification = {
|
||||||
id: this.user.id,
|
id: this.user.id,
|
||||||
credentials: useOAuthStore().token,
|
credentials: useOAuthStore().token,
|
||||||
})
|
})
|
||||||
// TODO Fix this
|
useFollowRequestsStore().remove(this.user.id)
|
||||||
this.$store.dispatch('removeFollowRequest', this.user)
|
|
||||||
useNotificationsStore().markSingleNotificationAsSeen(this.notification.id)
|
useNotificationsStore().markSingleNotificationAsSeen(this.notification.id)
|
||||||
this.hideApproveConfirmDialog()
|
this.hideApproveConfirmDialog()
|
||||||
},
|
},
|
||||||
|
|
@ -166,8 +165,7 @@ const Notification = {
|
||||||
credentials: useOAuthStore().token,
|
credentials: useOAuthStore().token,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
useNotificationsStore().dismissNotificationLocal(this.notification.id)
|
useNotificationsStore().dismissNotificationLocal(this.notification.id)
|
||||||
// TODO Fix this
|
useFollowRequestsStore().remove(this.user.id)
|
||||||
this.$store.dispatch('removeFollowRequest', this.user)
|
|
||||||
})
|
})
|
||||||
this.hideDenyConfirmDialog()
|
this.hideDenyConfirmDialog()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -62,10 +62,6 @@ const SideDrawer = {
|
||||||
GestureService.DIRECTION_LEFT,
|
GestureService.DIRECTION_LEFT,
|
||||||
this.toggleDrawer,
|
this.toggleDrawer,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (this.currentUser?.locked) {
|
|
||||||
this.$store.dispatch('startFetchingFollowRequests')
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
UserCard,
|
UserCard,
|
||||||
|
|
|
||||||
|
|
@ -689,7 +689,6 @@ export const useUsersStore = defineStore('users', {
|
||||||
useBookmarkFoldersStore().startFetching()
|
useBookmarkFoldersStore().startFetching()
|
||||||
|
|
||||||
if (user.locked) {
|
if (user.locked) {
|
||||||
dispatch('startFetchingFollowRequests')
|
|
||||||
useFollowRequestsStore().startFetching()
|
useFollowRequestsStore().startFetching()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -739,8 +738,6 @@ export const useUsersStore = defineStore('users', {
|
||||||
useFollowRequestsStore().stopFetching()
|
useFollowRequestsStore().stopFetching()
|
||||||
}
|
}
|
||||||
|
|
||||||
store?.dispatch('stopFetchingFollowRequests')
|
|
||||||
|
|
||||||
// NOTE: No need to verify the app still exists, because if it doesn't,
|
// NOTE: No need to verify the app still exists, because if it doesn't,
|
||||||
// the token will be invalid too
|
// the token will be invalid too
|
||||||
return oauth
|
return oauth
|
||||||
|
|
@ -798,7 +795,7 @@ export const useUsersStore = defineStore('users', {
|
||||||
useListsStore().startFetching()
|
useListsStore().startFetching()
|
||||||
useBookmarkFoldersStore().startFetching()
|
useBookmarkFoldersStore().startFetching()
|
||||||
useChatsStore().startFetching()
|
useChatsStore().startFetching()
|
||||||
store?.dispatch('startFetchingFollowRequests')
|
useFollowRequestsStore().startFetching()
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
useNotificationsStore().resume()
|
useNotificationsStore().resume()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue