nextcloud / nextcloud/spreed

Delay freespace calculation until the user tries to interact with the file share option or starts dropping a file

Open
#6,646 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: upload & shares & voice 📤🎙️
Dominant language
PHP
Stars
2.2k
Forks
587
Avg merge
18h 27m
Merged PRs (30d)
333

Description

Steps to reproduce

  1. Load a page which triggers BeforeTemplateRenderedEvent
  2. See that Talk does some filecache operations
Expected behaviour

Should only be done when needed, which is when the user actually starts dropping a file on the chat view or opens the menu.
From my POV it would be okay if this is only triggered/checked when the upload dialog shows

Actual behaviour

Are done on each rendering due to sidebar integrations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the sidebar integrations triggered during BeforeTemplateRenderedEvent, then locate the file-share menu and file-drop handlers that perform the filecache operations. The change is done when rendering the page no longer calculates freespace, while opening the upload dialog or beginning a file drop still performs the required check.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.