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,
|
||||
credentials: useOAuthStore().token,
|
||||
})
|
||||
// TODO Fix this
|
||||
this.$store.dispatch('removeFollowRequest', this.user)
|
||||
useFollowRequestsStore().remove(this.user.id)
|
||||
useNotificationsStore().markSingleNotificationAsSeen(this.notification.id)
|
||||
this.hideApproveConfirmDialog()
|
||||
},
|
||||
|
|
@ -166,8 +165,7 @@ const Notification = {
|
|||
credentials: useOAuthStore().token,
|
||||
}).then(() => {
|
||||
useNotificationsStore().dismissNotificationLocal(this.notification.id)
|
||||
// TODO Fix this
|
||||
this.$store.dispatch('removeFollowRequest', this.user)
|
||||
useFollowRequestsStore().remove(this.user.id)
|
||||
})
|
||||
this.hideDenyConfirmDialog()
|
||||
},
|
||||
|
|
|
|||
|
|
@ -62,10 +62,6 @@ const SideDrawer = {
|
|||
GestureService.DIRECTION_LEFT,
|
||||
this.toggleDrawer,
|
||||
)
|
||||
|
||||
if (this.currentUser?.locked) {
|
||||
this.$store.dispatch('startFetchingFollowRequests')
|
||||
}
|
||||
},
|
||||
components: {
|
||||
UserCard,
|
||||
|
|
|
|||
|
|
@ -689,7 +689,6 @@ export const useUsersStore = defineStore('users', {
|
|||
useBookmarkFoldersStore().startFetching()
|
||||
|
||||
if (user.locked) {
|
||||
dispatch('startFetchingFollowRequests')
|
||||
useFollowRequestsStore().startFetching()
|
||||
}
|
||||
|
||||
|
|
@ -739,8 +738,6 @@ export const useUsersStore = defineStore('users', {
|
|||
useFollowRequestsStore().stopFetching()
|
||||
}
|
||||
|
||||
store?.dispatch('stopFetchingFollowRequests')
|
||||
|
||||
// NOTE: No need to verify the app still exists, because if it doesn't,
|
||||
// the token will be invalid too
|
||||
return oauth
|
||||
|
|
@ -798,7 +795,7 @@ export const useUsersStore = defineStore('users', {
|
|||
useListsStore().startFetching()
|
||||
useBookmarkFoldersStore().startFetching()
|
||||
useChatsStore().startFetching()
|
||||
store?.dispatch('startFetchingFollowRequests')
|
||||
useFollowRequestsStore().startFetching()
|
||||
})
|
||||
.finally(() => {
|
||||
useNotificationsStore().resume()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue