Skip to content

Commit

Permalink
Merge pull request #12196 from nextcloud/backport/12192/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(call): open chat sidebar in call by click on toast
  • Loading branch information
Antreesy authored Apr 24, 2024
2 parents 8fecee6 + 4910abc commit d4b6d2f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1125,4 +1125,8 @@ export default {
overflow: hidden;
outline-offset: -2px;
}
:deep(#app-settings-header) {
padding-top: calc(var(--default-grid-baseline) * 2);
}
</style>
2 changes: 2 additions & 0 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,8 @@ export default {
})
this.chatExtrasStore.removeMessageIdToEdit(this.token)
this.resetTypingIndicator()
// refocus input as the user might want to type further
this.focusInput()
} catch {
this.$emit('failure')
showError(t('spreed', 'The message could not be edited'))
Expand Down
6 changes: 5 additions & 1 deletion src/components/TopBar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,11 @@ export default {
this.unreadNotificationHandle = null
}
if (message) {
this.unreadNotificationHandle = showMessage(message)
this.unreadNotificationHandle = showMessage(message, {
onClick: () => {
this.openSidebar('chat')
},
})
}
},
Expand Down

0 comments on commit d4b6d2f

Please sign in to comment.