Skip to content

Commit

Permalink
Merge pull request #10978 from nextcloud/fix/10886/hide-session-toast
Browse files Browse the repository at this point in the history
fix(activeSession): remove toast message
  • Loading branch information
nickvergessen committed Dec 7, 2023
2 parents 0574dfe + f28c88a commit 82c103c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/composables/useActiveSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import { computed, onBeforeMount, onBeforeUnmount, ref, watch } from 'vue'

import { getCapabilities } from '@nextcloud/capabilities'
import { showInfo } from '@nextcloud/dialogs'

import { SESSION } from '../constants.js'
import { setSessionState } from '../services/participantsService.js'
Expand Down Expand Up @@ -105,10 +104,6 @@ export function useActiveSession() {

try {
await setSessionState(token.value, SESSION.STATE.INACTIVE)
// Show toast message only when tab is visible on screen
if (windowIsVisible.value) {
showInfo(t('spreed', 'Session has been marked as inactive'))
}
console.info('Session has been marked as inactive')
} catch (error) {
console.error(error)
Expand Down

0 comments on commit 82c103c

Please sign in to comment.