Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/store/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import { TOAST_UNDO_TIMEOUT } from '@nextcloud/dialogs'

export const UNIFIED_ACCOUNT_ID = 0
export const UNIFIED_INBOX_ID = 'unified'
export const PRIORITY_INBOX_ID = 'priority'
export const PAGE_SIZE = 20
export const UNDO_DELAY = 7 * 1000
Comment thread
GretaD marked this conversation as resolved.
export const UNDO_DELAY = TOAST_UNDO_TIMEOUT
2 changes: 1 addition & 1 deletion src/store/outbox/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import * as OutboxService from '../../service/OutboxService'
import logger from '../../logger'
import { showError, showUndo } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n'
import { UNDO_DELAY } from '../constants'
import { html, plain } from '../../util/text'
import { UNDO_DELAY } from '../constants'

export default {
async fetchMessages({ getters, commit }) {
Expand Down