зеркало из https://github.com/nextcloud/spreed.git
Use visibility store
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
This commit is contained in:
Родитель
b6e40d0dcb
Коммит
4c72e2fe25
|
@ -59,11 +59,13 @@ export default {
|
|||
savedLastMessageMap: {},
|
||||
defaultPageTitle: false,
|
||||
loading: false,
|
||||
windowIsVisible: true,
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
windowIsVisible() {
|
||||
return this.$store.getters.windowIsVisible
|
||||
},
|
||||
conversations() {
|
||||
return this.$store.getters.conversations
|
||||
},
|
||||
|
@ -240,7 +242,7 @@ export default {
|
|||
},
|
||||
|
||||
changeWindowVisibility() {
|
||||
this.windowIsVisible = !document.hidden
|
||||
this.$store.dispatch('setWindowVisibility', !document.hidden)
|
||||
if (this.windowIsVisible) {
|
||||
// Remove the potential "*" marker for unread chat messages
|
||||
this.setPageTitle(this.getConversationName(this.token), false)
|
||||
|
|
Загрузка…
Ссылка в новой задаче