зеркало из https://github.com/nextcloud/spreed.git
Correctly join the conversation when opening a direct link
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
915e957fc8
Коммит
41649e5827
|
@ -135,12 +135,15 @@ export default {
|
|||
*/
|
||||
EventBus.$once('conversationsReceived', () => {
|
||||
if (this.$route.name === 'conversation') {
|
||||
const CURRENT_CONVERSATION_NAME = this.getConversationName(this.token)
|
||||
this.setPageTitle(CURRENT_CONVERSATION_NAME)
|
||||
// Adjust the page title once the conversation list is loaded
|
||||
this.setPageTitle(this.getConversationName(this.token), false)
|
||||
|
||||
// Automatically join the conversation as well
|
||||
joinConversation(this.token)
|
||||
}
|
||||
|
||||
if (!getCurrentUser()) {
|
||||
joinConversation(this.token)
|
||||
// Set the current actor/participant for guests
|
||||
const conversation = this.$store.getters.conversations[this.token]
|
||||
this.$store.dispatch('setCurrentParticipant', conversation)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче