Browse Source
Merge pull request #4030 from nextcloud/bugfix/3510/error-when-favoriting-in-the-sidebar
Fix error when favoriting a conversation in the rightsidebar
pull/4037/head
marco
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
12 deletions
-
src/components/RightSidebar/RightSidebar.vue
|
|
@ -79,11 +79,7 @@ import { CollectionList } from 'nextcloud-vue-collections' |
|
|
|
import BrowserStorage from '../../services/BrowserStorage' |
|
|
|
import { CONVERSATION, WEBINAR, PARTICIPANT } from '../../constants' |
|
|
|
import ParticipantsTab from './Participants/ParticipantsTab' |
|
|
|
import { |
|
|
|
addToFavorites, |
|
|
|
removeFromFavorites, |
|
|
|
setConversationName, |
|
|
|
} from '../../services/conversationsService' |
|
|
|
import { setConversationName } from '../../services/conversationsService' |
|
|
|
import isInLobby from '../../mixins/isInLobby' |
|
|
|
import SetGuestUsername from '../SetGuestUsername' |
|
|
|
import { EventBus } from '../../services/EventBus' |
|
|
@ -210,13 +206,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async onFavoriteChange() { |
|
|
|
if (this.conversation.isFavorite) { |
|
|
|
await removeFromFavorites(this.conversation.token) |
|
|
|
} else { |
|
|
|
await addToFavorites(this.conversation.token) |
|
|
|
} |
|
|
|
|
|
|
|
this.conversation.isFavorite = !this.conversation.isFavorite |
|
|
|
this.$store.dispatch('toggleFavorite', this.conversation) |
|
|
|
}, |
|
|
|
|
|
|
|
handleUpdateActive(active) { |
|
|
|